Example #1
0
 public static string IndexName(this PropertyInfo propertyInfo, SqlSyntax syntax)
 {
     return($"IX_{syntax.GetConstraintBaseName(propertyInfo.DeclaringType)}_{propertyInfo.SqlColumnName()}");
 }
Example #2
0
 public static string ForeignKeyName(this PropertyInfo propertyInfo, SqlSyntax syntax)
 {
     return($"FK_{syntax.GetConstraintBaseName(propertyInfo.ReflectedType)}_{propertyInfo.SqlColumnName()}");
 }