MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

How to use traditional ADO.Net in csla.net #126

Open suraj-mahajan opened 8 years ago

suraj-mahajan commented 8 years ago

How to use traditional ADO.Net in csla.net. Is there have any example ?

jonnybee commented 8 years ago

Pretty much the same as you would use EF or other data access methods except that you will read data from a DataReader.

Look at the classes CslaDataReader and ConnectionManager.

You could also look at the templates and code genenerators from CodeSmith and CslaGenFork https://cslagenfork.codeplex.com/ and the templates and samples for these.

You should also be able to find answers in the old CSLA forum (now readonly) at http://forums.lhotka.net/

tfreitasleal commented 8 years ago

You have a sample here.