Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestMethod]
- public void TestEntityTest()
- {
- var db = new TestDbContext();
- var ent = db.ResupplyForms.SingleOrDefault(e => e.Guid == new Guid("55117161-F3FA-4291-8E9B-A67F3B416097"));
- var json = new JavaScriptSerializer().Serialize(ent);
- }
- An exception of type 'System.InvalidOperationException' occurred in System.Web.Extensions.dll but was not handled in user code
- Additional information: A circular reference was detected while serializing an object of type 'System.Data.Entity.DynamicProxies.ResupplyForm_13763C1B587B4145B35C75CE2D5394EBED19F93943F42503204F91E0B9B4294D'.
- var db = new Rome.Model.Form.TestDbContext();
- var ent = db.ResupplyForms.SingleOrDefault(e => e.Guid == new Guid("55117161-F3FA-4291-8E9B-A67F3B416097"));
- var json = new JavaScriptSerializer().Serialize(ent).Dump();
- {"ResupplyFormID":1,"Guid":"55117161-f3fa-4291-8e9b-a67f3b416097","RecordStatus":null}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement