EF Core和复杂类型序列化

时间:2018-07-12 16:27:41

标签: c# ef-core-2.1

有关EF Core的问题。

假设我有一个这样的课程:

public class Foo
{
    public string MyString { get; set; }
    public int MyInt { get; set; }
    public VeryComplexType MyVeryComplexType { get; set; }
}

现在,我想获取的是写入数据库表:

  • 字符串
  • int
  • 包含VeryComplexType对象的json序列化的字符串。

有可能吗?

谢谢!

0 个答案:

没有答案