private void btn_kaydet_Click(object sender, EventArgs e) { u.UyeDetay.Tc = txt_tc.Text; u.UyeDetay.Ad = txt_ad.Text; u.UyeDetay.Soyad = txt_soyad.Text; u.UyeDetay.Memleket = txt_memleket.Text; u.UyeDetay.NufusCuzdaniFoto = fotografPath; u.UyeDetay.DogumTarihi = dt_dogumTarihi.Value; u.UyeDetay.Id = u.Id; var dbContext = RentACarDbContext.DbGetir(); bool result = dbContext.UyeTablosu.UyeDetayEkle(u.UyeDetay); if (result) { MessageBox.Show("Ekleme başarılı"); } else { MessageBox.Show("Başarısız"); } }
public VehicleRepository(RentACarDbContext dbContext) : base(dbContext) { }
public CarsController(RentACarDbContext context) { _context = context; }
public KayitOl() { InitializeComponent(); dbContext = RentACarDbContext.DbGetir(); }
public EmployeeRepository(RentACarDbContext dbContext) : base(dbContext) { }
public MarcasController() { _dbContext = new RentACarDbContext(); }
protected BaseRepository(RentACarDbContext dbContext) { DbContext = dbContext; }
protected void SeedEverything(RentACarDbContext context) { context.Database.EnsureCreated(); context.SaveChanges(); }
public TiposController() { _dbContext = new RentACarDbContext(); }
public TeslimEt() { InitializeComponent(); dbContext = RentACarDbContext.DbGetir(); }
public BaseRepository(RentACarDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CarReservationRepository(RentACarDbContext context) { this.context = context; }
public UyeGirisi() { InitializeComponent(); dbContext = RentACarDbContext.DbGetir(); }
public CarService(RentACarDbContext context) { this.context = context; }
public RegistrationRepository(RentACarDbContext dbContext) : base(dbContext) { }
public CustomerRepository(RentACarDbContext dbContext) : base(dbContext) { }
public RatingRepository(RentACarDbContext context) { this.context = context; }
public UserService(RentACarDbContext context, IRentService rentService) { this.context = context; this.rentService = rentService; }
public static void Initialize(RentACarDbContext context) { var initializer = new RentACarDbInitializer(); initializer.SeedEverything(context); }
public CarRepository(RentACarDbContext context) : base(context) { }
public BaseRepository(RentACarDbContext context) { _context = context; }
public AracFilo() { dbContext = RentACarDbContext.DbGetir(); InitializeComponent(); }
public ModelosController() { _dbContext = new RentACarDbContext(); }
public SqlServerCarRepository(RentACarDbContext context, IMapper mapper) : base(context, mapper) { }
public BranchRepository(RentACarDbContext context) { this.context = context; }
public RentRateRepository(RentACarDbContext dbContext) : base(dbContext) { }
public AutosController() { _dbContext = new RentACarDbContext(); _identityDbContext = new IdentityDbContext(); }
public UsuariosController() { _dbContext = new RentACarDbContext(); _applicationDb = new ApplicationDbContext(); }