/// <summary>
 /// Creates an instance of a column binding.
 /// </summary>
 public static IDbColumnBinding CreateInstance(IDbSetup setup, PropertyInfo propInfo, DbColumnAttribute attr, IDbTableBinding table)
 {
     return(TypeHelper.CreateInstance(typeof(DbColumnBinding <,>), new[] { propInfo.DeclaringType, propInfo.PropertyType }, setup, propInfo, attr, table) as IDbColumnBinding);
 }
Exemple #2
0
 public DbFieldAttribute(DbColumnAttribute colAttr)
 {
     name             = colAttr.DbName;
     isOptional       = true;
     IsNullableForced = colAttr.IsNullableForced;
 }