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
Post a Comment