c# - ADO.NET entity data model generate from database and skip columns -
I want to create an EDM from my database file (.mdf), but I do not want to work with all the columns. How do I leave these columns with .edmx?
You can not choose specific column of time generation. But, if you only want to work with a subset of the column, then the EDM produces the entire table; Then in the surface of the designer you can select the columns you do not need and press remove to remove them from the model.
A note is that if there are some obstacles in your database, such as non-blank columns are not a default value, if you try to add or update entities without those pillars in your model If an exception will be thrown.
Comments
Post a Comment