may i know is there any good Linq to Sql C# framework available out there?
I found these below but it seem to be too complex. Could you advice?
may i know is there any good Linq to Sql C# framework available out
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Linq to SQL is deprecated by MS. If you want to stick with MS Frameworks take a look at Entity Framework.(See comments)I would advice to use NHibernate. If you use their fluent configuration or even auto configuration you can easily build a simple system. As soon as you need something more sophisticated NHibernate has the power you need.
Of course this won’t be the simplest way to do CURD, however database access is no simple topic and should need some thought.
You can google for active record implementations for .net if you want to take the ruby on rails approach, which is quite pragmatic and elegant, too.
Edit to provide you with a sample take a look at the NH getting started guide: http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx
It’s relatively easy to get going with NHibernate. As you require more sophisticated features you can drill deeper into the framework.
Notice that the getting started guide uses XML Mapping Configuration. You can use http://fluentnhibernate.org/ to fluently configure your mappings like:
The fluent interface exposes all further functions chained on the Map() method.
Fluent NH even provides Auto Mapping: http://wiki.fluentnhibernate.org/Auto_mapping