Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the supplierViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the supplierViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected supplierViewModel(IUnitOfWorkFactory <IModel1UnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.suppliers, x => x.name)
 {
 }
 protected CenterOfServiceViewModel(IUnitOfWorkFactory <INextBOUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.ServiceCenters, x => x.Id)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the PetStoreEntitiesViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PetStoreEntitiesViewModel type without the POCO proxy factory.
 /// </summary>
 protected PetStoreEntitiesViewModel()
     : base(UnitOfWorkSource.GetUnitOfWorkFactory())
 {
 }
 /// <summary>
 /// Initializes a new instance of the ShipperCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ShipperCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ShipperCollectionViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Shippers)
 {
 }
 /// <summary>
 /// Initializes a new instance of the Alphabetical_list_of_productCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Alphabetical_list_of_productCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Alphabetical_list_of_productCollectionViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Alphabetical_list_of_products)
 {
 }
 /// <summary>
 /// Initializes a new instance of the CommentCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the CommentCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected CommentCollectionViewModel(IUnitOfWorkFactory <IPetStoreEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Comments)
 {
 }
 /// <summary>
 /// Initializes a new instance of the Governorates_TBLCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Governorates_TBLCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Governorates_TBLCollectionViewModel(IUnitOfWorkFactory <IArmy_DBEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Governorates_TBL)
 {
 }
 /// <summary>
 /// Initializes a new instance of the Summary_of_Sales_by_YearCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Summary_of_Sales_by_YearCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Summary_of_Sales_by_YearCollectionViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Summary_of_Sales_by_Years)
 {
 }
 /// <summary>
 /// Initializes a new instance of the PhieuDatBanCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PhieuDatBanCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PhieuDatBanCollectionViewModel(IUnitOfWorkFactory <IQuanLyNhaHangEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PhieuDatBans)
 {
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the BloggingContextViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the BloggingContextViewModel type without the POCO proxy factory.
 /// </summary>
 protected BloggingContextViewModel()
     : base(UnitOfWorkSource.GetUnitOfWorkFactory())
 {
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the SRM_GiaNhaCCCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the SRM_GiaNhaCCCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected SRM_GiaNhaCCCollectionViewModel(IUnitOfWorkFactory <IQuanLyNhaHangEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.SRM_GiaNhaCC)
 {
 }
 /// <summary>
 /// Initializes a new instance of the DispatchViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the DispatchViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected DispatchViewModel(IUnitOfWorkFactory <IMMPPLDBEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Dispatches, x => x.DriverName)
 {
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the StudentViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the StudentViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected StudentViewModel(IUnitOfWorkFactory <ISchoolDBContextUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Students, x => x.StudentName)
 {
 }
Beispiel #14
0
 /// <summary>
 /// Initializes a new instance of the QuyenViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the QuyenViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected QuyenViewModel(IUnitOfWorkFactory <IQuanLyNhaHangEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Quyens, x => x.NhomQuyen1)
 {
 }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the DepartmentContextViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the DepartmentContextViewModel type without the POCO proxy factory.
 /// </summary>
 protected DepartmentContextViewModel()
     : base(UnitOfWorkSource.GetUnitOfWorkFactory())
 {
 }
 /// <summary>
 /// Initializes a new instance of the BuildingCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the BuildingCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected BuildingCollectionViewModel(IUnitOfWorkFactory <IRentalDBUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Buildings)
 {
 }
 /// <summary>
 /// Initializes a new instance of the TheVIPChiTietCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the TheVIPChiTietCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected TheVIPChiTietCollectionViewModel(IUnitOfWorkFactory <IQuanLyNhaHangEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.TheVIPChiTiets)
 {
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the OrderViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the OrderViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected OrderViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Orders, x => x.ShipName)
 {
 }
Beispiel #19
0
 /// <summary>
 /// Initializes a new instance of the Customer_and_Suppliers_by_CityCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Customer_and_Suppliers_by_CityCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Customer_and_Suppliers_by_CityCollectionViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Customer_and_Suppliers_by_Cities)
 {
 }
Beispiel #20
0
 /// <summary>
 /// Initializes a new instance of the VehicleCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the VehicleCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected VehicleCollectionViewModel(IUnitOfWorkFactory <INextBOUnitOfWork> unitOfWorkFactory = null, UnitOfWorkPolicy unitOfWorkPolicy = UnitOfWorkPolicy.Individual)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Vehicles, unitOfWorkPolicy: unitOfWorkPolicy)
 {
 }
 /// <summary>
 /// Initializes a new instance of the Current_Product_ListCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Current_Product_ListCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Current_Product_ListCollectionViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Current_Product_Lists)
 {
 }
Beispiel #22
0
 /// <summary>
 /// Initializes a new instance of the RentViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the RentViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected RentViewModel(IUnitOfWorkFactory <IRentCarDbContextUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Rents, x => x.Comment)
 {
 }
Beispiel #23
0
 /// <summary>
 /// Initializes a new instance of the Priv_TableViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Priv_TableViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Priv_TableViewModel(IUnitOfWorkFactory <IRentalDBUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Priv_Table, x => x.ID)
 {
 }
 /// <summary>
 /// Initializes a new instance of the EmployeeCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the EmployeeCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected EmployeeCollectionViewModel(IUnitOfWorkFactory <IDevAVDbUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Employees)
 {
 }
Beispiel #25
0
 /// <summary>
 /// Initializes a new instance of the ContractViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ContractViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ContractViewModel(IUnitOfWorkFactory <IQLHDDbContextUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Contracts, x => x.Name)
 {
 }
 /// <summary>
 /// Initializes a new instance of the OrdersDbEntitiesViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the OrdersDbEntitiesViewModel type without the POCO proxy factory.
 /// </summary>
 protected OrdersDbEntitiesViewModel()
     : base(UnitOfWorkSource.GetUnitOfWorkFactory())
 {
 }
 /// <summary>
 /// Initializes a new instance of the Order_Details_ExtendedViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the Order_Details_ExtendedViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected Order_Details_ExtendedViewModel(IUnitOfWorkFactory <INorthwindEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Order_Details_Extendeds, x => x.ProductName)
 {
 }
 /// <summary>
 /// Initializes a new instance of the FileViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the FileViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected FileViewModel(IUnitOfWorkFactory <IConstructionDataContextUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Files, x => x.FileName)
 {
 }
Beispiel #29
0
 /// <summary>
 /// Initializes a new instance of the DotKiemKeViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the DotKiemKeViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected DotKiemKeViewModel(IUnitOfWorkFactory <IQuanLyNhaHangEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.DotKiemKes, x => x.TenDotKiemKe)
 {
 }
 public ProductMapViewModel()
     : base(UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Products)
 {
 }