Exemplo n.º 1
0
        public bool TryCreate(IProperty property, string edmPropertyName, bool canBeNull, out IStructuralProperty structuralProperty)
        {
            IDataType dataType;

            if (!this.TryGetDataType(property, out dataType))
            {
                structuralProperty = null;
                return(false);
            }

            structuralProperty = new CostSharpStructuralProperty(property, edmPropertyName, dataType, canBeNull);
            return(true);
        }
Exemplo n.º 2
0
        public bool TryCreate(IProperty property, out IStructuralProperty structuralProperty)
        {
            IDataType dataType;

            if (!this.TryGetDataType(property, out dataType))
            {
                structuralProperty = null;
                return(false);
            }

            structuralProperty = new CostSharpStructuralProperty(property, this.modelItemNamingService.GetSafeEdmPropertyName(property), dataType);
            return(true);
        }