Replacing internal with public in typed dataset?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
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 said:
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 said:
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?
 
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.
 
Hi Carolina,

Carolina said:
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 said:
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 said:
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?
 
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 said:
Hi Carolina,

Carolina said:
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 said:
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

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?
 
Back
Top