Пример #1
0
 private TypeMapper(MappedTypeAttribute attr)
 {
     this.Name                     = attr.Name;
     this.DefaultValue             = attr.DefaultValue;
     this.IncludeInSynchronization = attr.IncludeInSynchronization;
     this.IsOptional               = attr.IsOptional;
     this.Precision                = attr.Precision;
     this.Size                     = attr.Size;
     this.SqlType                  = attr.SqlType;
 }
Пример #2
0
 public TypeMapper(MappedTypeAttribute attr, FieldInfo member)
     : this(attr)
 {
     this.Name    = this.Name ?? member.Name;
     this.SqlType = this.SqlType ?? SqlTypes[member.FieldType];
 }
Пример #3
0
 public TypeMapper(MappedTypeAttribute attr, PropertyInfo member)
     : this(attr)
 {
     this.Name    = attr.Name ?? member.Name;
     this.SqlType = this.SqlType ?? SqlTypes[member.PropertyType];
 }
Пример #4
0
 protected TypeMapper(MappedTypeAttribute attr, ParameterInfo member)
     : this(attr)
 {
     this.Name    = this.Name ?? member.Name;
     this.SqlType = this.SqlType ?? SqlTypes[member.ParameterType];
 }