Exemple #1
0
        /// <summary>
        ///     Creates new ScalarProperty inside FunctionImportTypeMapping created by the prereq command
        /// </summary>
        /// <param name="prereq"></param>
        /// <param name="property">Valid c-side Property (either from EntityType or ComplexType)</param>
        /// <param name="columnName"></param>
        internal CreateFunctionImportScalarPropertyCommand(
            CreateFunctionImportTypeMappingCommand prereq, Property property, string columnName)
        {
            ValidatePrereqCommand(prereq);
            CommandValidation.ValidateConceptualProperty(property);
            ValidateString(columnName);

            _property   = property;
            _columnName = columnName;
            AddPreReqCommand(prereq);
        }
        /// <summary>
        ///     Creates new ScalarProperty inside FunctionImportTypeMapping created by the prereq command
        /// </summary>
        /// <param name="prereq"></param>
        /// <param name="property">Valid c-side Property (either from EntityType or ComplexType)</param>
        /// <param name="columnName"></param>
        internal CreateFunctionImportScalarPropertyCommand(
            CreateFunctionImportTypeMappingCommand prereq, Property property, string columnName)
        {
            ValidatePrereqCommand(prereq);
            CommandValidation.ValidateConceptualProperty(property);
            ValidateString(columnName);

            _property = property;
            _columnName = columnName;
            AddPreReqCommand(prereq);
        }