How to prevent or allow json serialization of a property from breeze controller
问题 So it happens that you can prevent breeze json serialization of some properties using data annotations on your model by like this(well if you are using EF6 with JSON.NET on the backend)... [Table("Project")] public partial class Project { public Project() { } public int id { get; set; } [JsonIgnore] public bool NoLongerExist { get; set; } } By doing so the property becomes invisible on this endpoint used by breeze public IQueryable<Project> Projects() { return _db.Context.Projects.Where(o =>