Beispiel #1
0
 public virtual string AfterCast(StringSqlLiteralType sqlLiteralType
                                 , PropertyType propertyType
                                 , ColumnInfo aColumnInfo
                                 , string sqlLiteralValue)
 {
     return(sqlLiteralValue);
 }
Beispiel #2
0
 public virtual object BeforeCast(StringSqlLiteralType sqlLiteralType
                                  , PropertyType propertyType
                                  , ColumnInfo aColumnInfo
                                  , object propertyValue)
 {
     return(propertyValue);
 }
Beispiel #3
0
        internal string CastTo(StringSqlLiteralType sqlLiteralType
                               , ColumnInfo aColumnInfo
                               , object propertyValue)
        {
            //プロパティ値を、Cast前編集する
            object value = this.BeforeCast_PropertyType(aColumnInfo, propertyValue);

            //プロパティ値を、Cast前編集する
            value = this.BeforeCast(sqlLiteralType, aColumnInfo, value);
            //プロパティ型から、SQLリテラル型にキャストする
            string castedValue = this.CastToImp(sqlLiteralType, value);

            //プロパティ値を、Cast後編集する
            castedValue = this.AfterCast(sqlLiteralType, aColumnInfo, castedValue);
            //プロパティ値を、Cast後編集する
            return(this.AfterCast_PropertyType(aColumnInfo, castedValue));
        }
Beispiel #4
0
 protected abstract string CastToImp(StringSqlLiteralType sqlLiteralType
                                     , object propertyValue);