How to use Json data type in C# Entity Framework model?
问题 model.cs [Column(TypeName = "json")] public string application_role { get; set; } Its MySQL, data type of particular column is json , and how to add it in a model class. I tried with DataAnnotations but getting error as The specified type member 'application_role' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported. Linq Query to get data context.sc_employee_details .Where(e => e.user_name.Equals(userName)) .Select(o => o