private void AddPropertyNameMapping(PropertyInfo propertyInfo) { var name = propertyInfo.GetNamefromAttributeOrPropertyName(); _mapping.Add(name, propertyInfo.Name); }
private static SqlMetaData CreateDefaultColumnMetaData(PropertyInfo propertyInfo, SqlDbType columnSqlDbType) { var name = propertyInfo.GetNamefromAttributeOrPropertyName(); return new SqlMetaData(name, columnSqlDbType); }
private static SqlMetaData CreateTextColumnMetaData(PropertyInfo propertyInfo, SqlDbType columnSqlDbType) { var name = propertyInfo.GetNamefromAttributeOrPropertyName(); var size = GetColumnSize(propertyInfo); return new SqlMetaData(name, columnSqlDbType, size); }
private static SqlMetaData CreateDecimalColumnMetaData(PropertyInfo propertyInfo, SqlDbType columnSqlDbType) { var name = propertyInfo.GetNamefromAttributeOrPropertyName(); var precision = GetColumnPrecision(propertyInfo); var scale = GetColumnScale(propertyInfo); return new SqlMetaData(name, columnSqlDbType, precision, scale); }