Page 1 of 1

a model without mapping some fileds

Posted: Wed 28 Jun 2017 14:15
by Q.X
I have a model like
[order], with fields a,b,c mapping to the table [tbl_order] with fileds a,b
I don't want to mapping filed c
how to do this?
it seems i must mapping model fields wiht table one by one

Re: a model without mapping some fileds

Posted: Mon 03 Jul 2017 17:29
by Shalex
Please remove the property/field c from your model, save the model and regenerate the code.

If this doesn't help, specify:
1) the exact text of the error you are getting
2) the name of ORM you are currently working with (NHibernate, Entity Framework, etc)