Last post Jun 05, 2017 09:09 AM by Cathy Zou
Jun 04, 2017 06:30 PM|MrProgrammer|LINK
I want to use that code:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
// Moved all Student related configuration to StudentEntityConfiguration class
but modelBuilder object do not has Configurations property
Jun 05, 2017 09:09 AM|Cathy Zou|LINK
As far as I know, DbModelBuilder has two properties : Configurations and Conventions.
It woks well on my side
For more information about DbModelBuilder and how to use modelBuilder.Configurations.Add() method,
Please refer to the following links:
Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from the Internet.