示例#1
0
 public void AddCharacter(Character character)
 {
     using (var mdbc = new MovieDBContext())
     {
         mdbc.Characters.Add(character);
         mdbc.SaveChanges();
     }
 }
示例#2
0
 public DBManager()
 {
     context = new MovieDBContext();
 }