/// <summary> /// 配置映射的类型。 /// </summary> /// <param name="mappingType"></param> public static void Configure(IMappingType mappingType) { Utils.CheckNull(mappingType); lock (_lockObj) { SetItem(_typeInfos, mappingType.Type, mappingType.DbType, mappingType); } }
static void SetItem(Dictionary <Type, MappingTypeInfo> map, Type type, DbType mapDbType, IMappingType mappingType = null) { map[type] = new MappingTypeInfo(type, mapDbType, mappingType); }
public static void UseMappingType(IMappingType mappingType) { MappingTypeSystem.Configure(mappingType); }
public MappingTypeInfo(Type type, DbType mapDbType, IMappingType mappingType) { this.Type = type; this.MapDbType = mapDbType; this.MappingType = mappingType; }
public MRM2(MemberInfo member, IMappingType mappingType) { this._mappingType = mappingType; this._valueSetter = DelegateGenerator.CreateValueSetter(member); }