public TrackRepository()
 {
     //this is the unique id for the model to which this repository belongs to. used to find the correct connection string
     ModelId = RepoLookup.ModelId.MainDb;
     //this is the unique id for the entity. used to retrieve EntityInfo object from the RepoLookup.EntityId
     EntityId = RepoLookup.EntityId.MainDb_Media_Track;
     //tables with triggers have limitations that need to be accounted for
     HasTriggers = false;
     #region Default Sorting
     //this is the PK (PK__Track__7A74F8E00EA330E9) sorting. used as default for method overloads that DO NOT take a SortFilters parameter
     DefaultSort = new SortFilters <TrackProperty>(1)
     {
         SortFilter.New(TrackProperty.TrackId),
     };
     #endregion
 }
Example #2
0
 public InvoiceRepository()
 {
     //this is the unique id for the model to which this repository belongs to. used to find the correct connection string
     ModelId = RepoLookup.ModelId.MainDb;
     //this is the unique id for the entity. used to retrieve EntityInfo object from the RepoLookup.EntityId
     EntityId = RepoLookup.EntityId.MainDb_Accounting_Invoice;
     //tables with triggers have limitations that need to be accounted for
     HasTriggers = false;
     #region Default Sorting
     //this is the PK (PK__Invoice__D796AAB51A14E395) sorting. used as default for method overloads that DO NOT take a SortFilters parameter
     DefaultSort = new SortFilters <InvoiceProperty>(1)
     {
         SortFilter.New(InvoiceProperty.InvoiceId),
     };
     #endregion
 }
 public CustomerRepository()
 {
     //this is the unique id for the model to which this repository belongs to. used to find the correct connection string
     ModelId = RepoLookup.ModelId.MainDb;
     //this is the unique id for the entity. used to retrieve EntityInfo object from the RepoLookup.EntityId
     EntityId = RepoLookup.EntityId.MainDb_People_Customer;
     //tables with triggers have limitations that need to be accounted for
     HasTriggers = false;
     #region Default Sorting
     //this is the PK (PK__Customer__A4AE64D8164452B1) sorting. used as default for method overloads that DO NOT take a SortFilters parameter
     DefaultSort = new SortFilters <CustomerProperty>(1)
     {
         SortFilter.New(CustomerProperty.CustomerId),
     };
     #endregion
 }
Example #4
0
 public ColorRepository()
 {
     //this is the unique id for the model to which this repository belongs to. used to find the correct connection string
     ModelId = RepoLookup.ModelId.WorldWideImporters;
     //this is the unique id for the entity. used to retrieve EntityInfo object from the RepoLookup.EntityId
     EntityId = RepoLookup.EntityId.WorldWideImporters_Warehouse_Color;
     //tables with triggers have limitations that need to be accounted for
     HasTriggers = false;
     #region Default Sorting
     //this is the PK (PK_Warehouse_Colors) sorting. used as default for method overloads that DO NOT take a SortFilters parameter
     DefaultSort = new SortFilters <ColorProperty>(1)
     {
         SortFilter.New(ColorProperty.ColorID),
     };
     #endregion
 }
 public EmployeeRepository()
 {
     //this is the unique id for the model to which this repository belongs to. used to find the correct connection string
     ModelId = RepoLookup.ModelId.MainDb;
     //this is the unique id for the entity. used to retrieve EntityInfo object from the RepoLookup.EntityId
     EntityId = RepoLookup.EntityId.MainDb_People_Employee;
     //tables with triggers have limitations that need to be accounted for
     HasTriggers = false;
     #region Default Sorting
     //this is the PK (PK__Employee__7AD04F111273C1CD) sorting. used as default for method overloads that DO NOT take a SortFilters parameter
     DefaultSort = new SortFilters <EmployeeProperty>(1)
     {
         SortFilter.New(EmployeeProperty.EmployeeId),
     };
     #endregion
 }