示例#1
0
        private static XAttribute ConstructStoreGeneratedPatternAttribute(EdmProperty property, Version targetVersion)
        {
            var sgpValue = property.GetStoreGeneratedPatternValue(targetVersion, DataSpace.CSpace);

            if (sgpValue != StoreGeneratedPattern.None)
            {
                return(new XAttribute(_storeGeneratedPattern, Enum.GetName(typeof(StoreGeneratedPattern), sgpValue)));
            }
            return(null);
        }
        public virtual string GetIdentity(EdmProperty property, Version targetVersion)
        {
            if (IsIdentityEnabled &&
                property.GetStoreGeneratedPatternValue(targetVersion, DataSpace.SSpace) ==
                StoreGeneratedPattern.Identity)
            {
                return(Identity);
            }

            return(String.Empty);
        }