Fixes sql server DateTimeOffset mapping. Makes Custom DB types much more flexible and usable by 3rd parties.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
@@ -300,10 +300,14 @@ where table_name=@0 and column_name=@1", tableName, columnName).FirstOrDefault()
|
||||
GetQuotedTableName(index.TableName), columns);
|
||||
}
|
||||
|
||||
public override string GetSpecialDbType(SpecialDbTypes dbTypes)
|
||||
public override string GetSpecialDbType(SpecialDbType dbTypes)
|
||||
{
|
||||
if (dbTypes == SpecialDbTypes.NVARCHARMAX) // SqlCE does not have nvarchar(max) for now
|
||||
// SqlCE does not have nvarchar(max) for now
|
||||
if (dbTypes == SpecialDbType.NVARCHARMAX)
|
||||
{
|
||||
return "NTEXT";
|
||||
}
|
||||
|
||||
return base.GetSpecialDbType(dbTypes);
|
||||
}
|
||||
public override SqlDbType GetSqlDbType(DbType dbType)
|
||||
|
||||
Reference in New Issue
Block a user