Пример #1
0
        static void Main(string[] args)
        {
            DataModelContainer ctx = new DataModelContainer();

            User user = new User();

            user.Username = "******";
            user.Password = "******";

            ctx.UserSet.Add(user);

            ctx.SaveChanges();
        }
Пример #2
0
 public MovieRepository(DataModelContainer context)
 {
     this.context = context;
 }
Пример #3
0
 public UserRepository(DataModelContainer context)
 {
     this.context = context;
 }