c# - Removing member variable from Entity Framework Core generated class -


i using entity framework core generate classes sql database , trying remove navigation member variables of classes. example, here 1 of class generated:

public class serialnumbers {     public serialnumbers()     {         features = new hashset<features>();     }     /// <summary>     /// serial number id     /// </summary>     public guid id { get; set; }      /// <summary>     /// contracts id     /// </summary>     public guid contractid { get; set; }      /// <summary>     /// user's id     /// </summary>     public guid userid { get; set; }      public virtual icollection<features> features { get; set; }       public virtual contracts contract { get; set; }      public virtual users user { get; set; } 

how go removing navigation variables contract , user aren't needed i'm doing? if remove them, sql exception when calling linq methods.

thanks


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -