示例#1
0
        /// <summary>
        /// 应用映射。
        /// </summary>
        public DapperMetadata GetMetadata()
        {
            DapperMetadataBuilder <T> builder = new DapperMetadataBuilder <T>();

            ConfigureModel(builder);
            return(builder.Build());
        }
示例#2
0
 /// <summary>
 /// 派生类重写此方法用以配置实体到持久化存储的映射。
 /// </summary>
 /// <param name="builder"></param>
 protected abstract void ConfigureModel(DapperMetadataBuilder <T> builder);