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