64 730
Assignments Done
99,3%
Successfully Done
In September 2018

Answer to Question #4932 in ASP | ASP.NET for Pierre

Question #4932
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?
Expert's answer
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions