static void Main(string[] args) { //Dependency' ler Register ediliyor Bootstrapper.Instance .Bootstrap(new DependencyBootstrapper()); //IServiceBase interface' inin hangi class ile calistigi resolve ediliyor. _serviceStudent = DependencyContainer.Current.Resolve<IServiceStudent>(); ////ornek islemler InsertStudent(); UpdateStudent(); GetStudentById(); GetAllStudents(); Console.ReadLine(); _serviceFirm = DependencyContainer.Current.Resolve<IServiceFirm>(); var firm = _serviceFirm.GetById(1); }
static void Main(string[] args) { //Dependency' ler Register ediliyor Bootstrapper.Instance .Bootstrap(new DependencyBootstrapper()); //IServiceBase interface' inin hangi class ile calistigi resolve ediliyor. _serviceStudent = DependencyContainer.Current.Resolve <IServiceStudent>(); ////ornek islemler InsertStudent(); UpdateStudent(); GetStudentById(); GetAllStudents(); Console.ReadLine(); _serviceFirm = DependencyContainer.Current.Resolve <IServiceFirm>(); var firm = _serviceFirm.GetById(1); }
public StudentsController(IServiceStudent ServiceStudents) { this.ServiceStudent = ServiceStudents; }
public HomeController(IServiceStudent serviceStudent) { _serviceStudent = serviceStudent; }
public StudentsController(IMapper mapper, IServiceStudent serviceStudent) { _mapper = mapper; _serviceStudent = serviceStudent; }
public Form1(IServiceStudent serviceStudent) { _serviceStudent = serviceStudent; InitializeComponent(); }