Пример #1
0
        //Made a test user for when setting up database..
        static void Main(string[] args)
        {
            User kanon = new User
            {
                UserName     = "******",
                UserPassword = "******"
            };

            using (var db = new FishNTripsDbContext()) {
                db.Users.Add(kanon);
                db.SaveChanges();
            }
        }
Пример #2
0
 public ImagesController(FishNTripsDbContext context)
 {
     _context = context;
 }
Пример #3
0
 public UsersController(FishNTripsDbContext context)
 {
     _context = context;
 }
 public LocationsController(FishNTripsDbContext context)
 {
     _context = context;
 }
 public CommentsController(FishNTripsDbContext context)
 {
     _context = context;
 }