c# - Column is Identity Key but not Database Generated -


how designate column database identity unique, not database generated? here how if report_id database generated:

[table("[report.settings]")] public partial class report_settings {     [key]     [column(order = 0)]     public int instance_id { get; set; }      [key]     [column(order = 1)]     [databasegenerated(databasegeneratedoption.identity)]     public long report_id { get; set; }      public string report_metadata { get; set; }      public string report_grid_settings { get; set; }      public virtual report report { get; set; } } 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -