w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
how to turn off automatic generation on my Entity framework?

I finally solved this by doing below:

Change Book model as below:

public class Book
{

public int ID { get; set; }
public string Name { get; set; }
public string Author { get; set; }
public string Publishment { get; set; }
public int BookTypeID { get; set; }
public int BookPlaceID { get; set; }

public virtual BookType BookType { get; set; }
public virtual BookPlace BookPlace { get; set; }
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.