Beispiel #1
0
 public ColumnMap(string columnName, string fieldName, IMetadataMap dataMap)
 {
     _columnName = columnName;
     _fieldName  = fieldName;
     _dataMap    = dataMap;
     InitField();
 }
Beispiel #2
0
 public ColumnMap(string columnName, string fieldName, IMetadataMap dataMap)
 {
     _columnName = columnName;
     _fieldName = fieldName;
     _dataMap = dataMap;
     InitField();
 }
Beispiel #3
0
 public override string GenerateSql(IMetadataMap metadataMap)
 {
     return string.Format("UPPER({0}) LIKE UPPER('{1}')", metadataMap.GetColumnForField(field), value);
 }
Beispiel #4
0
 public override string GenerateSql(IMetadataMap metadataMap)
 {
     return string.Format("{0} {1} {2}", metadataMap.GetColumnForField(field), sqlOperator, value);
 }
Beispiel #5
0
 public abstract string GenerateSql(IMetadataMap metadataMap);
Beispiel #6
0
 public override string GenerateSql(IMetadataMap metadataMap)
 {
     return(string.Format("{0} {1} {2}", metadataMap.GetColumnForField(field), sqlOperator, value));
 }
Beispiel #7
0
 public override string GenerateSql(IMetadataMap metadataMap)
 {
     return(string.Format("UPPER({0}) LIKE UPPER('{1}')", metadataMap.GetColumnForField(field), value));
 }
Beispiel #8
0
 public abstract string GenerateSql(IMetadataMap metadataMap);
 public FindByNameStatement(string firstName, string lastName, IMetadataMap metadataMap)
 {
     _firstName   = firstName;
     _lastName    = lastName;
     _metadataMap = metadataMap;
 }
Beispiel #10
0
 public SQLMapper()
 {
     _metadataMap = LoadMetadataMap();
 }
Beispiel #11
0
 public FindByCustomerStatement(Guid customerId, IMetadataMap metadataMap)
 {
     _customerId  = customerId;
     _metadataMap = metadataMap;
 }
Beispiel #12
0
 public FindByDateStatement(DateTime orderDate, IMetadataMap metadataMap)
 {
     _orderDate   = orderDate;
     _metadataMap = metadataMap;
 }