Hi!

I would really like to use some of the internal constructors and properties
in my typed dataset from another assembly. Does anyone know of a way to do
this without writing proxy classes or manually changing the dataset.cs-file
everytime it's been generated?

Re: Replacing internal with public in typed dataset? by Cor

Cor
Fri Mar 11 05:11:01 CST 2005

Carolina,

Mostly the most easy way is copy your cs file in a DLL libary project and
compile it.
(Output has to be Class Library)

However this question is more for the newsgroup
microsoft.public.dotnet.languages.csharp

By the way.

Cor



Re: Replacing internal with public in typed dataset? by Miha

Miha
Fri Mar 11 05:55:16 CST 2005

Hi,

Yes, annoying indeed.
You might use reflection or a custom dataset generator to generate the
dataset code, see:
www.codesmithtools.org

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

"Carolina" <Carolina@discussions.microsoft.com> wrote in message
news:DECA878B-2BD4-4AE5-941D-781690C7625E@microsoft.com...
> Hi!
>
> I would really like to use some of the internal constructors and
> properties
> in my typed dataset from another assembly. Does anyone know of a way to do
> this without writing proxy classes or manually changing the
> dataset.cs-file
> everytime it's been generated?



Re: Replacing internal with public in typed dataset? by Carolina

Carolina
Fri Mar 11 06:11:06 CST 2005

That is what I currently have... with the dataset in a separate assembly, I
con not access the internal properties and functions that I need. This seems
to be a feature of the dataset generator, that's why I posted the question
here.

"Cor Ligthert" wrote:

> Carolina,
>
> Mostly the most easy way is copy your cs file in a DLL libary project and
> compile it.
> (Output has to be Class Library)
>
> However this question is more for the newsgroup
> microsoft.public.dotnet.languages.csharp
>
> By the way.
>
> Cor
>
>
>

Re: Replacing internal with public in typed dataset? by Carolina

Carolina
Fri Mar 11 06:11:04 CST 2005

Thank you Miha!

CodeSmith seems like a great tool. Do I understand correctly that I would
replace the part of VS that generates typed datasets with this tool? Is it
directly integrated into VS or do I have to do that manually?

"Miha Markic [MVP C#]" wrote:

> Hi,
>
> Yes, annoying indeed.
> You might use reflection or a custom dataset generator to generate the
> dataset code, see:
> www.codesmithtools.org
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> www.rthand.com
> SLODUG - Slovene Developer Users Group www.codezone-si.info
>
> "Carolina" <Carolina@discussions.microsoft.com> wrote in message
> news:DECA878B-2BD4-4AE5-941D-781690C7625E@microsoft.com...
> > Hi!
> >
> > I would really like to use some of the internal constructors and
> > properties
> > in my typed dataset from another assembly. Does anyone know of a way to do
> > this without writing proxy classes or manually changing the
> > dataset.cs-file
> > everytime it's been generated?
>
>
>

Re: Replacing internal with public in typed dataset? by Miha

Miha
Fri Mar 11 06:34:47 CST 2005

Hi Carolina,

"Carolina" <Carolina@discussions.microsoft.com> wrote in message
news:E272E3C4-384E-41BF-A9EC-59CBF6178092@microsoft.com...
> Thank you Miha!
>
> CodeSmith seems like a great tool.

Indeed.

Do I understand correctly that I would
> replace the part of VS that generates typed datasets with this tool?

It is a lot more. And if you miss a template you can create or modify it
yourself.

Is it
> directly integrated into VS or do I have to do that manually?

Actually you have both options.
I suggest you to read documentation and see the samples.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

> "Miha Markic [MVP C#]" wrote:
>
>> Hi,
>>
>> Yes, annoying indeed.
>> You might use reflection or a custom dataset generator to generate the
>> dataset code, see:
>> www.codesmithtools.org
>>
>> --
>> Miha Markic [MVP C#] - RightHand .NET consulting & development
>> www.rthand.com
>> SLODUG - Slovene Developer Users Group www.codezone-si.info
>>
>> "Carolina" <Carolina@discussions.microsoft.com> wrote in message
>> news:DECA878B-2BD4-4AE5-941D-781690C7625E@microsoft.com...
>> > Hi!
>> >
>> > I would really like to use some of the internal constructors and
>> > properties
>> > in my typed dataset from another assembly. Does anyone know of a way to
>> > do
>> > this without writing proxy classes or manually changing the
>> > dataset.cs-file
>> > everytime it's been generated?
>>
>>
>>



Re: Replacing internal with public in typed dataset? by Carolina

Carolina
Fri Mar 11 07:03:02 CST 2005

Hi Miha!

Thanks again, I have already downloaded and installed CodeSmith :-)

It is almost to advanced to be useful to me in the short run, but as soon as
I get the time to really dig in to it, I am sure I will love it!

/C

"Miha Markic [MVP C#]" wrote:

> Hi Carolina,
>
> "Carolina" <Carolina@discussions.microsoft.com> wrote in message
> news:E272E3C4-384E-41BF-A9EC-59CBF6178092@microsoft.com...
> > Thank you Miha!
> >
> > CodeSmith seems like a great tool.
>
> Indeed.
>
> Do I understand correctly that I would
> > replace the part of VS that generates typed datasets with this tool?
>
> It is a lot more. And if you miss a template you can create or modify it
> yourself.
>
> Is it
> > directly integrated into VS or do I have to do that manually?
>
> Actually you have both options.
> I suggest you to read documentation and see the samples.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> www.rthand.com
> SLODUG - Slovene Developer Users Group www.codezone-si.info
>
> > "Miha Markic [MVP C#]" wrote:
> >
> >> Hi,
> >>
> >> Yes, annoying indeed.
> >> You might use reflection or a custom dataset generator to generate the
> >> dataset code, see:
> >> www.codesmithtools.org
> >>
> >> --
> >> Miha Markic [MVP C#] - RightHand .NET consulting & development
> >> www.rthand.com
> >> SLODUG - Slovene Developer Users Group www.codezone-si.info
> >>
> >> "Carolina" <Carolina@discussions.microsoft.com> wrote in message
> >> news:DECA878B-2BD4-4AE5-941D-781690C7625E@microsoft.com...
> >> > Hi!
> >> >
> >> > I would really like to use some of the internal constructors and
> >> > properties
> >> > in my typed dataset from another assembly. Does anyone know of a way to
> >> > do
> >> > this without writing proxy classes or manually changing the
> >> > dataset.cs-file
> >> > everytime it's been generated?
> >>
> >>
> >>
>
>
>