Exemplo n.º 1
0
 internal TypeMappingOptions(Type forType, MappingOptionsSet parent)
 {
     _parent               = parent;
     _forType              = forType;
     TableName             = forType.Name;
     _memberMappingOptions = null;
 }
Exemplo n.º 2
0
        internal static TypeMappingOptions GetExistingTypeMappingOptions(Type type)
        {
            MappingOptionsSet mappingOptionsSet = null;

            if (_mappedInOptionSet.ContainsKey(type))
            {
                mappingOptionsSet = _mappedInOptionSet[type].Value;
            }

            return(mappingOptionsSet?.GetTypeMappingOptions(type));
        }
Exemplo n.º 3
0
 internal MemberMappingOptions(MappingOptionsSet mappingOptionsSet, PropertyInfo member)
 {
     _mappingOptionsSet = mappingOptionsSet;
     _member            = member;
 }
 internal FieldMappingOptions(MappingOptionsSet mappingOptionsSet, PropertyInfo member) : base(mappingOptionsSet, member)
 {
     DatabaseFieldName = member.Name;
 }
 internal ForeignObjectMappingOptions(MappingOptionsSet mappingOptionsSet, PropertyInfo member) : base(mappingOptionsSet, member)
 {
     _parent           = mappingOptionsSet;
     ForeignObjectType = member.PropertyType;
 }
Exemplo n.º 6
0
 internal ReferenceListMappingOptions(MappingOptionsSet mappingOptionsSet, PropertyInfo member) : base(mappingOptionsSet, member)
 {
     Conditions = new Dictionary <PropertyInfo, object>();
 }