예제 #1
0
        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;
        }
예제 #2
0
        public void Area(string area, Action action)
        {
            var mapping = new AreaMapping(area);

            MapNested(mapping, action);
        }
예제 #3
0
        public void Area <T>(string areaName, string pathPrefix, Action action)
        {
            var mapping = new AreaMapping <T>(areaName, pathPrefix);

            MapNested(mapping, action);
        }
예제 #4
0
 /// <summary>
 /// 重写自定义Map配置
 /// </summary>
 /// <param name="modelBuilder"></param>
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     AreaMapping.MappingToTable(modelBuilder);
 }