将 EFCore 映射到 oracle 自定义复合类型
Map EFCore to oracle custom composite type
所以我有一个 table 包含一个类型的列...我们称它为 STAMP:
CREATE TYPE STAMP(
timestamp DATE,
num INTEGER
)
很自然地,我的 EF 模型有一个 属性 类型的 Stamp:
public class Stamp
{
public DateTime Timestamp { get; set; }
public int Num { get; set; }
}
但我收到错误 The property Table.From is of type 'Stamp' which is not supported by the current database provider
。
我如何映射它? EFCore issue on github好像关门了
它被称为用户定义类型 (UDT)。当前 Oracle.ManagedDataAccess.Core 不支持它。并且肯定它不受 EF Core Oracle 提供程序支持。
所以我有一个 table 包含一个类型的列...我们称它为 STAMP:
CREATE TYPE STAMP(
timestamp DATE,
num INTEGER
)
很自然地,我的 EF 模型有一个 属性 类型的 Stamp:
public class Stamp
{
public DateTime Timestamp { get; set; }
public int Num { get; set; }
}
但我收到错误 The property Table.From is of type 'Stamp' which is not supported by the current database provider
。
我如何映射它? EFCore issue on github好像关门了
它被称为用户定义类型 (UDT)。当前 Oracle.ManagedDataAccess.Core 不支持它。并且肯定它不受 EF Core Oracle 提供程序支持。