Example #1
0
 public virtual string AfterCast(IntervalSqlLiteralType sqlLiteralType
                                 , PropertyType propertyType
                                 , ColumnInfo aColumnInfo
                                 , string sqlLiteralValue)
 {
     return(sqlLiteralValue);
 }
Example #2
0
 public virtual object BeforeCast(IntervalSqlLiteralType sqlLiteralType
                                  , PropertyType propertyType
                                  , ColumnInfo aColumnInfo
                                  , object propertyValue)
 {
     return(propertyValue);
 }
Example #3
0
        internal string CastTo(IntervalSqlLiteralType sqlLiteralType
                               , ColumnInfo aColumnInfo
                               , object propertyValue)
        {
            object value = this.BeforeCast_PropertyType(aColumnInfo, propertyValue);

            value = this.BeforeCast(sqlLiteralType, aColumnInfo, value);
            string castedValue = this.CastToImp(sqlLiteralType, value);

            castedValue = this.AfterCast(sqlLiteralType, aColumnInfo, castedValue);
            return(this.AfterCast_PropertyType(aColumnInfo, castedValue));
        }
Example #4
0
 protected abstract string CastToImp(IntervalSqlLiteralType sqlLiteralType
                                     , object propertyValue);