'Is it possible to use EF 6, and Newtonsoft.Json at the same time?
I am using EF6 to manage multiple DataContexts (3 different and distinct data connections). In one DbContext, the view that I have been granted access to has a field that contains serialized Json strings as values on one of the columns.
In the primary object of one of the dbContexts, I have this:
[JsonProperty("recordText")] //coming out of the database, this really is a JSON Document
[JsonConverter(typeof(BusObj))]
public BusObj? RecordText { get; set; }
.
.
.
public PrimaryDomainObj()
{
RecordText = new BusObj();
}
//there is also another List<BusIbj2> inside the <BusObj>
I went this route, because this is how I was able to do something similar on a project in the past that dealt with an earlier version of EF. That was 6 years ago, and was only with SQL Azure. Now, I'm looking to do the same thing, only with MySQL. Is this possible? Or will I have to go the "long way" to get what I want?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
