public static string GetProperty(this DatabaseColumn column) { var dataType = column.GetDataType(); return(new StringBuilder(Templates.PropertyTemplate) .Replace("$dataType$", dataType) .Replace("$name$", column.Name) .ToString()); }
public static string GetField(this DatabaseColumn column) { var dataType = column.GetDataType(); return(new StringBuilder(Templates.FieldTemplate) .Replace("$dataType$", dataType) .Replace("$name$", (column.Name.First() + "").ToLower() + column.Name.Substring(1, column.Name.Length - 1)) .ToString()); }