LINQ to SQL Unmapped Property

2019-07-19 19:15发布

问题:

Is it possible to add a custom property in the designer and have it not bound to a column? I fiddled with the settings a bit settled on making a partial class with the property. Is there a way to show this field in the ORM designer?

回答1:

The LINQ-to-SQL designer is maintaining the mapping. Unmapped properties need to go in a separate partial class.



回答2:

In the Designer, right click on the Object Properties header and Add => Property.