Beispiel #1
0
        public void Configure(ITableBuilder <Product> builder)
        {
            builder.SetSchema("dbo").SetName("Products");

            builder.SetForeignKey(e => e.OwnerId, e => e.Owner)
            .References(e => e.Id, e => e.Products)
            .SetOnDelete(DeleteRule.None);
        }