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); }
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); }