public void Area <T>(string areaName) { var areaMapping = new AreaMapping <T>(areaName, ""); foreach (var mapping in mappings) { areaMapping.AddSubMapping(mapping); } mappings = new List <Mapping> { areaMapping }; _currentMapping = areaMapping; }
public void Area(string area, Action action) { var mapping = new AreaMapping(area); MapNested(mapping, action); }
public void Area <T>(string areaName, string pathPrefix, Action action) { var mapping = new AreaMapping <T>(areaName, pathPrefix); MapNested(mapping, action); }
/// <summary> /// 重写自定义Map配置 /// </summary> /// <param name="modelBuilder"></param> protected override void OnModelCreating(ModelBuilder modelBuilder) { AreaMapping.MappingToTable(modelBuilder); }