示例#1
0
 public BoardRepository()
 {
     _noteContext = new NoteContext();
     // Disable proxy generation because of bug with EF 5 which is currently beeing used in the project.
     // The bug causes failiure whith json.
     _noteContext.Configuration.ProxyCreationEnabled = false;
 }
示例#2
0
        public NoteRepository()
        {
            // Create a new note context ( generated by EF)
            _noteContext = new NoteContext();

            // Disable proxy generation for what appears to be a bug with the
            // serialization when returning the data via json.
            _noteContext.Configuration.ProxyCreationEnabled = false;
        }
示例#3
0
 public UserRepository()
 {
     _noteContext = new NoteContext();
 }