public void Value_is_null_for_column_with_DBNull_as_value()
 {
     var columnValue = new ColumnValue("Name", DBNull.Value);
     Assert.IsNull(columnValue.Value);
 }
 public void SetUp()
 {
     _qualifiedColumnValue = new ColumnValue("Movie Title", 1);
     _unqualifiedColumnValue = new ColumnValue("Title", 1);
 }
 public void Is_for_type_when_qualified_with_table_name_from_type_name_and_convention()
 {
     var columnValue = new ColumnValue("MOVIE COLUMNNAME", 0);
     Assert.IsTrue(columnValue.IsForType(typeof(Movie), new UpperCaseConvention()));
 }
Exemple #4
0
 public void Add(ColumnValue columnValue)
 {
     ColumnValues.Add(columnValue);
 }
Exemple #5
0
 private static bool IsGeneratedByWeenyMapper(ColumnValue x)
 {
     return x.ColumnName.StartsWith(EntityMapper.WeenyMapperGeneratedColumnNamePrefix);
 }
Exemple #6
0
 public void Remove(ColumnValue columnValue)
 {
     ColumnValues.Remove(columnValue);
 }