public virtual FieldProperties GetFieldProperties(TableSchema schema, TableSchema.Field field) { var fieldProperties = new FieldProperties(); if (Regex.IsMatch(field.FieldName, IsFieldIndexedRegex, RegexOptions.IgnoreCase)) { fieldProperties.Indexed = true; } string pkName = PrimaryKeyName.Replace(CLASS_NAME, schema.ObjectType.Name); if (field.FieldName.Equals(pkName, StringComparison.OrdinalIgnoreCase)) { fieldProperties.PrimaryKey = true; fieldProperties.AutoIncrement = UseAutoIncrement && field.FieldInfo.Inspector().Type.Inspector().Is(TypeFlags.Integer); fieldProperties.Indexed = false; } return(fieldProperties); }
public SqlJoinPart(TableSchema schema, TableSchema.Field field, string alias) { Field = field; Schema = schema; Alias = alias; }