示例#1
0
        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");
            }
        }
示例#2
0
 public VehicleRepository(RentACarDbContext dbContext) : base(dbContext)
 {
 }
 public CarsController(RentACarDbContext context)
 {
     _context = context;
 }
示例#4
0
 public KayitOl()
 {
     InitializeComponent();
     dbContext = RentACarDbContext.DbGetir();
 }
 public EmployeeRepository(RentACarDbContext dbContext) : base(dbContext)
 {
 }
示例#6
0
 public MarcasController()
 {
     _dbContext = new RentACarDbContext();
 }
 protected BaseRepository(RentACarDbContext dbContext)
 {
     DbContext = dbContext;
 }
示例#8
0
 protected void SeedEverything(RentACarDbContext context)
 {
     context.Database.EnsureCreated();
     context.SaveChanges();
 }
示例#9
0
 public TiposController()
 {
     _dbContext = new RentACarDbContext();
 }
示例#10
0
 public TeslimEt()
 {
     InitializeComponent();
     dbContext = RentACarDbContext.DbGetir();
 }
示例#11
0
 public BaseRepository(RentACarDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
示例#12
0
 public CarReservationRepository(RentACarDbContext context)
 {
     this.context = context;
 }
示例#13
0
 public UyeGirisi()
 {
     InitializeComponent();
     dbContext = RentACarDbContext.DbGetir();
 }
示例#14
0
 public CarService(RentACarDbContext context)
 {
     this.context = context;
 }
示例#15
0
 public RegistrationRepository(RentACarDbContext dbContext) : base(dbContext)
 {
 }
 public CustomerRepository(RentACarDbContext dbContext) : base(dbContext)
 {
 }
示例#17
0
 public RatingRepository(RentACarDbContext context)
 {
     this.context = context;
 }
示例#18
0
 public UserService(RentACarDbContext context,
                    IRentService rentService)
 {
     this.context     = context;
     this.rentService = rentService;
 }
示例#19
0
        public static void Initialize(RentACarDbContext context)
        {
            var initializer = new RentACarDbInitializer();

            initializer.SeedEverything(context);
        }
示例#20
0
 public CarRepository(RentACarDbContext context) : base(context)
 {
 }
示例#21
0
 public BaseRepository(RentACarDbContext context)
 {
     _context = context;
 }
示例#22
0
 public AracFilo()
 {
     dbContext = RentACarDbContext.DbGetir();
     InitializeComponent();
 }
示例#23
0
 public ModelosController()
 {
     _dbContext = new RentACarDbContext();
 }
示例#24
0
 public SqlServerCarRepository(RentACarDbContext context, IMapper mapper) : base(context, mapper)
 {
 }
示例#25
0
 public BranchRepository(RentACarDbContext context)
 {
     this.context = context;
 }
 public RentRateRepository(RentACarDbContext dbContext) : base(dbContext)
 {
 }
示例#27
0
 public AutosController()
 {
     _dbContext         = new RentACarDbContext();
     _identityDbContext = new IdentityDbContext();
 }
示例#28
0
 public UsuariosController()
 {
     _dbContext     = new RentACarDbContext();
     _applicationDb = new ApplicationDbContext();
 }