Angular/Breeze: how to save the data in BreezeController to database directly
问题 This is my breezeController using EF repository: [BreezeController] public class BreezeController : ApiController { private readonly MyRepository _repository; public BreezeController() { _repository = new MyRepository(User); } [HttpPost] [ValidateHttpAntiForgeryToken] public SaveResult SaveChanges(JObject saveBundle) { return _repository.SaveChanges(saveBundle); } [HttpGet] public IQueryable<Compound> Compounds(int id) { var compounds = new List<Compound>(); compounds.add(new Compound() {