internal FunctionImportEntityTypeMappingConditionIsNull(string columnName, bool isNull, LineInfo lineInfo)
            : base(columnName, lineInfo)
        {
            DebugCheck.NotNull(columnName);

            _isNull = isNull;
        }
 internal FunctionImportReturnTypeStructuralTypeColumn(string columnName, StructuralType type, bool isTypeOf, LineInfo lineInfo)
 {
     ColumnName = columnName;
     IsTypeOf = isTypeOf;
     Type = type;
     LineInfo = lineInfo;
 }
        internal FunctionImportEntityTypeMappingCondition(string columnName, LineInfo lineInfo)
        {
            DebugCheck.NotNull(columnName);

            _columnName = columnName;
            LineInfo = lineInfo;
        }
        protected FunctionImportEntityTypeMappingCondition(string columnName, LineInfo lineInfo)
        {
            Contract.Requires(columnName != null);

            ColumnName = columnName;
            LineInfo = lineInfo;
        }
        internal FunctionImportEntityTypeMappingConditionValue(string columnName, XPathNavigator columnValue, LineInfo lineInfo)
            : base(columnName, lineInfo)
        {
            DebugCheck.NotNull(columnValue);

            _xPathValue = columnValue;
            _convertedValues = new Memoizer<Type, object>(GetConditionValue, null);
        }
        internal FunctionImportEntityTypeMappingConditionValue(string columnName, XPathNavigator columnValue, LineInfo lineInfo)
            : base(columnName, lineInfo)
        {
            Contract.Requires(columnValue != null);

            _xPathValue = columnValue;
            _convertedValues = new Memoizer<Type, object>(GetConditionValue, null);
        }
        internal FunctionImportComplexTypeMapping(
            ComplexType returnType, Collection<FunctionImportReturnTypePropertyMapping> properties, LineInfo lineInfo)
            : base(properties, lineInfo)
        {
            DebugCheck.NotNull(returnType);
            DebugCheck.NotNull(properties);

            _returnType = returnType;
        }
        internal FunctionImportReturnTypeScalarPropertyMapping(
            string propertyName, string columnName, LineInfo lineInfo)
            : base(lineInfo)
        {
            DebugCheck.NotNull(propertyName);
            DebugCheck.NotNull(columnName);

            _propertyName = propertyName;
            _columnName = columnName;
        }
        internal FunctionImportEntityTypeMapping(
            IEnumerable<EntityType> isOfTypeEntityTypes,
            IEnumerable<EntityType> entityTypes, IEnumerable<FunctionImportEntityTypeMappingCondition> conditions,
            Collection<FunctionImportReturnTypePropertyMapping> columnsRenameList,
            LineInfo lineInfo)
            : base(columnsRenameList, lineInfo)
        {
            Contract.Requires(isOfTypeEntityTypes != null);
            Contract.Requires(entityTypes != null);
            Contract.Requires(conditions != null);

            IsOfTypeEntityTypes = new ReadOnlyCollection<EntityType>(isOfTypeEntityTypes.ToList());
            EntityTypes = new ReadOnlyCollection<EntityType>(entityTypes.ToList());
            Conditions = new ReadOnlyCollection<FunctionImportEntityTypeMappingCondition>(conditions.ToList());
        }
        internal FunctionImportEntityTypeMapping(
            IEnumerable<EntityType> isOfTypeEntityTypes,
            IEnumerable<EntityType> entityTypes, IEnumerable<FunctionImportEntityTypeMappingCondition> conditions,
            Collection<FunctionImportReturnTypePropertyMapping> columnsRenameList,
            LineInfo lineInfo)
            : base(columnsRenameList, lineInfo)
        {
            DebugCheck.NotNull(isOfTypeEntityTypes);
            DebugCheck.NotNull(entityTypes);
            DebugCheck.NotNull(conditions);

            IsOfTypeEntityTypes = new ReadOnlyCollection<EntityType>(isOfTypeEntityTypes.ToList());
            EntityTypes = new ReadOnlyCollection<EntityType>(entityTypes.ToList());
            Conditions = new ReadOnlyCollection<FunctionImportEntityTypeMappingCondition>(conditions.ToList());
        }
 internal FunctionImportStructuralTypeMapping(
     Collection<FunctionImportReturnTypePropertyMapping> columnsRenameList, LineInfo lineInfo)
 {
     ColumnsRenameList = columnsRenameList;
     LineInfo = lineInfo;
 }
예제 #12
0
        internal FunctionImportComplexTypeMapping(
            ComplexType returnType, Collection <FunctionImportReturnTypePropertyMapping> properties, LineInfo lineInfo)
            : base(properties, lineInfo)
        {
            DebugCheck.NotNull(returnType);
            DebugCheck.NotNull(properties);

            _returnType = returnType;
        }
 internal FunctionImportComplexTypeMapping(
     ComplexType returnType, Collection<FunctionImportReturnTypePropertyMapping> columnsRenameList, LineInfo lineInfo)
     : base(columnsRenameList, lineInfo)
 {
     ReturnType = returnType;
 }
예제 #14
0
 internal FunctionImportReturnTypeStructuralTypeColumn(string columnName, StructuralType type, bool isTypeOf, LineInfo lineInfo)
 {
     ColumnName = columnName;
     IsTypeOf   = isTypeOf;
     Type       = type;
     LineInfo   = lineInfo;
 }
예제 #15
0
        internal FunctionImportEntityTypeMappingConditionIsNull(string columnName, bool isNull, LineInfo lineInfo)
            : base(columnName, lineInfo)
        {
            DebugCheck.NotNull(columnName);

            _isNull = isNull;
        }