WeenyMapper.Mapping.ColumnValue.IsForType C# (CSharp) Method

IsForType() public method

public IsForType ( Type type, IConvention convention ) : bool
type System.Type
convention IConvention
return bool
        public bool IsForType(Type type, IConvention convention)
        {
            return !HasTableQualifiedAlias || TableName == convention.GetTableName(type);
        }

Usage Example

Esempio n. 1
0
 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()));
 }