Пример #1
0
        private string AfterCast(SqlLiteralType sqlLiteralType
                                 , ColumnInfo aColumnInfo
                                 , string sqlLiteralValue)
        {
            MethodInfo methodInfo = _castEditorType.GetMethod("AfterCast"
                                                              , new System.Type[] { sqlLiteralType.GetType(),
                                                                                    this.GetType(),
                                                                                    typeof(ColumnInfo),
                                                                                    typeof(string) });

            return(methodInfo.Invoke(_castEditor,
                                     new object[] { sqlLiteralType,
                                                    this,
                                                    aColumnInfo,
                                                    sqlLiteralValue }).ToString());
        }
Пример #2
0
        private object BeforeCast(SqlLiteralType sqlLiteralType
                                  , ColumnInfo aColumnInfo
                                  , object propertyValue)
        {
            MethodInfo methodInfo = _castEditorType.GetMethod("BeforeCast"
                                                              , new System.Type[] { sqlLiteralType.GetType(),
                                                                                    this.GetType(),
                                                                                    typeof(ColumnInfo),
                                                                                    typeof(object) });

            return(methodInfo.Invoke(_castEditor,
                                     new object[] { sqlLiteralType,
                                                    this,
                                                    aColumnInfo,
                                                    propertyValue }));
        }