private bool MustStoreAsText(Property property) { if (!property.IsEnumeration) return false; bool defaultValue = MustStoreAsText(property.ProjectEnumeration); return property.GetAttributeValue("storeAsText", Namespace, defaultValue); }
private static bool MustEncrypt(Property property) { return property != null && property.IsPersistent && property.GetAttributeValue("encrypt", Namespace, false); }
private int GetColumnSize(Property property) { if (property == null) return Project.DefaultMaxLength; int defaultValue = GetColumnSize(property.ProjectEnumeration); var columnSize = property.GetAttributeValue("columnSize", Namespace, defaultValue); return columnSize <= 0 ? ComputeMaxLength(property.ProjectEnumeration) : columnSize; }
private string GetSelectExpression(Property property) { return property.GetAttributeValue("expression", Namespace, (string)null) ?? property.PersistenceName; }