Kim Ramin
Kim Ramin

Reputation: 23

Generate specific column in ADO.NET Entity Data Modeling

I have one table that has many fields like ID,Username,Password,Lang,Date,.. When I create Entity Data modeling so all the table field is generated. I want to generate only specific column like username and password only.

Upvotes: 0

Views: 120

Answers (1)

Sunil
Sunil

Reputation: 3424

When you generate from database it will generate model for all the columns initially, but you have the freedom to delete the columns that you don't want manually from the generated database EDMX diagram.

Just select the field you don't want and hit 'DEL' key.

Make sure that the fields you delete are nullable ones and also not primary key for that table.

Upvotes: 1

Related Questions