I just want to know how to create classes from database? I'm stuck. Ive read something about class = table. But what if my table has foreign keys? What should I do?
1
Expert's answer
2011-11-01T13:39:52-0400
First you need to use some ORM. Linq To Sql or Entity Framework. For 1-st you should create *.dbml. Then in the same namespace you can create class with name of the table but also make class partial. (public partial class TableName { } ) in crated class you can add some propperties or methods.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment