File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Collections . Generic ;
2
3
using System . Data ;
3
4
using System . Data . Common ;
@@ -498,5 +499,19 @@ public override bool SupportsForeignKeyConstraintInAlterTable
498
499
// Said to be unlimited. http://sqlite.1065341.n5.nabble.com/Max-limits-on-the-following-td37859.html
499
500
/// <inheritdoc />
500
501
public override int MaxAliasLength => 128 ;
502
+
503
+ // Since v5.3
504
+ [ Obsolete ( "This class has no usage in NHibernate anymore and will be removed in a future version. Use or extend CastFunction instead." ) ]
505
+ [ Serializable ]
506
+ protected class SQLiteCastFunction : CastFunction
507
+ {
508
+ protected override bool CastingIsRequired ( string sqlType )
509
+ {
510
+ if ( StringHelper . ContainsCaseInsensitive ( sqlType , "date" ) ||
511
+ StringHelper . ContainsCaseInsensitive ( sqlType , "time" ) )
512
+ return false ;
513
+ return true ;
514
+ }
515
+ }
501
516
}
502
517
}
You can’t perform that action at this time.
0 commit comments