diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-03-01 23:27:24 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-03-01 23:27:24 +0200 |
| commit | 65d7f918b273a572d2d9a1d08a2797ea76b10850 (patch) | |
| tree | 9ec592ba65b765153b4e400d90f11d764dc98d00 /Software/Visual_Studio/Tango.BL/ObservablesContext.cs | |
| parent | 7281ce18b916f327f263e938624e8c0d25374620 (diff) | |
| download | Tango-65d7f918b273a572d2d9a1d08a2797ea76b10850.tar.gz Tango-65d7f918b273a572d2d9a1d08a2797ea76b10850.zip | |
Another BL Optimization /:
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ObservablesContext.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/ObservablesContext.cs | 553 |
1 files changed, 553 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ObservablesContext.cs b/Software/Visual_Studio/Tango.BL/ObservablesContext.cs new file mode 100644 index 000000000..139054738 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/ObservablesContext.cs @@ -0,0 +1,553 @@ +using System; +using System.Collections.Generic; +using System.Data.Entity; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Settings; +using Tango.BL.Entities; + +namespace Tango.BL +{ + public partial class ObservablesContext : DbContext + { + /// <summary> + /// Initializes a new instance of the <see cref="ObservablesContext" /> class. + /// </summary> + /// <param name="path">The server file path.</param> + /// <param name="isFile">if set to <c>true</c> will try to connect to an .mdf file.</param> + public ObservablesContext(String path) : base(ComposeConnectionString(path)) + { + + } + + /// <summary> + /// Gets or sets the ActionTypes. + /// </summary> + public DbSet<ActionType> ActionTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the Addresses. + /// </summary> + public DbSet<Address> Addresses + { + get; set; + } + + /// <summary> + /// Gets or sets the ApplicationDisplayPanelVersions. + /// </summary> + public DbSet<ApplicationDisplayPanelVersion> ApplicationDisplayPanelVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the ApplicationFirmwareVersions. + /// </summary> + public DbSet<ApplicationFirmwareVersion> ApplicationFirmwareVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the ApplicationOsVersions. + /// </summary> + public DbSet<ApplicationOsVersion> ApplicationOsVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the ApplicationVersions. + /// </summary> + public DbSet<ApplicationVersion> ApplicationVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the BrushStops. + /// </summary> + public DbSet<BrushStop> BrushStops + { + get; set; + } + + /// <summary> + /// Gets or sets the CartridgeTypes. + /// </summary> + public DbSet<CartridgeType> CartridgeTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the Cats. + /// </summary> + public DbSet<Cat> Cats + { + get; set; + } + + /// <summary> + /// Gets or sets the Ccts. + /// </summary> + public DbSet<Cct> Ccts + { + get; set; + } + + /// <summary> + /// Gets or sets the ColorCatalogs. + /// </summary> + public DbSet<ColorCatalog> ColorCatalogs + { + get; set; + } + + /// <summary> + /// Gets or sets the ColorSpaces. + /// </summary> + public DbSet<ColorSpace> ColorSpaces + { + get; set; + } + + /// <summary> + /// Gets or sets the Configurations. + /// </summary> + public DbSet<Configuration> Configurations + { + get; set; + } + + /// <summary> + /// Gets or sets the Contacts. + /// </summary> + public DbSet<Contact> Contacts + { + get; set; + } + + /// <summary> + /// Gets or sets the DispenserTypes. + /// </summary> + public DbSet<DispenserType> DispenserTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the EmbeddedFirmwareVersions. + /// </summary> + public DbSet<EmbeddedFirmwareVersion> EmbeddedFirmwareVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the EmbeddedSoftwareVersions. + /// </summary> + public DbSet<EmbeddedSoftwareVersion> EmbeddedSoftwareVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the EventTypes. + /// </summary> + public DbSet<EventType> EventTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the EventTypesActions. + /// </summary> + public DbSet<EventTypesAction> EventTypesActions + { + get; set; + } + + /// <summary> + /// Gets or sets the FiberShapes. + /// </summary> + public DbSet<FiberShape> FiberShapes + { + get; set; + } + + /// <summary> + /// Gets or sets the FiberSynths. + /// </summary> + public DbSet<FiberSynth> FiberSynths + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareDancerTypes. + /// </summary> + public DbSet<HardwareDancerType> HardwareDancerTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareDancers. + /// </summary> + public DbSet<HardwareDancer> HardwareDancers + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareMotorTypes. + /// </summary> + public DbSet<HardwareMotorType> HardwareMotorTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareMotors. + /// </summary> + public DbSet<HardwareMotor> HardwareMotors + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwarePidControlTypes. + /// </summary> + public DbSet<HardwarePidControlType> HardwarePidControlTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwarePidControls. + /// </summary> + public DbSet<HardwarePidControl> HardwarePidControls + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareVersions. + /// </summary> + public DbSet<HardwareVersion> HardwareVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareWinderTypes. + /// </summary> + public DbSet<HardwareWinderType> HardwareWinderTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the HardwareWinders. + /// </summary> + public DbSet<HardwareWinder> HardwareWinders + { + get; set; + } + + /// <summary> + /// Gets or sets the IdsPackFormulas. + /// </summary> + public DbSet<IdsPackFormula> IdsPackFormulas + { + get; set; + } + + /// <summary> + /// Gets or sets the IdsPacks. + /// </summary> + public DbSet<IdsPack> IdsPacks + { + get; set; + } + + /// <summary> + /// Gets or sets the JobRuns. + /// </summary> + public DbSet<JobRun> JobRuns + { + get; set; + } + + /// <summary> + /// Gets or sets the Jobs. + /// </summary> + public DbSet<Job> Jobs + { + get; set; + } + + /// <summary> + /// Gets or sets the LinearMassDensityUnits. + /// </summary> + public DbSet<LinearMassDensityUnit> LinearMassDensityUnits + { + get; set; + } + + /// <summary> + /// Gets or sets the LiquidTypes. + /// </summary> + public DbSet<LiquidType> LiquidTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the LiquidTypesRmls. + /// </summary> + public DbSet<LiquidTypesRml> LiquidTypesRmls + { + get; set; + } + + /// <summary> + /// Gets or sets the MachineStudioVersions. + /// </summary> + public DbSet<MachineStudioVersion> MachineStudioVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the MachineVersions. + /// </summary> + public DbSet<MachineVersion> MachineVersions + { + get; set; + } + + /// <summary> + /// Gets or sets the Machines. + /// </summary> + public DbSet<Machine> Machines + { + get; set; + } + + /// <summary> + /// Gets or sets the MachinesConfigurations. + /// </summary> + public DbSet<MachinesConfiguration> MachinesConfigurations + { + get; set; + } + + /// <summary> + /// Gets or sets the MachinesEvents. + /// </summary> + public DbSet<MachinesEvent> MachinesEvents + { + get; set; + } + + /// <summary> + /// Gets or sets the MediaColors. + /// </summary> + public DbSet<MediaColor> MediaColors + { + get; set; + } + + /// <summary> + /// Gets or sets the MediaConditions. + /// </summary> + public DbSet<MediaCondition> MediaConditions + { + get; set; + } + + /// <summary> + /// Gets or sets the MediaMaterials. + /// </summary> + public DbSet<MediaMaterial> MediaMaterials + { + get; set; + } + + /// <summary> + /// Gets or sets the MediaPurposes. + /// </summary> + public DbSet<MediaPurpos> MediaPurposes + { + get; set; + } + + /// <summary> + /// Gets or sets the MidTankTypes. + /// </summary> + public DbSet<MidTankType> MidTankTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the Organizations. + /// </summary> + public DbSet<Organization> Organizations + { + get; set; + } + + /// <summary> + /// Gets or sets the Permissions. + /// </summary> + public DbSet<Permission> Permissions + { + get; set; + } + + /// <summary> + /// Gets or sets the ProcessParametersTables. + /// </summary> + public DbSet<ProcessParametersTable> ProcessParametersTables + { + get; set; + } + + /// <summary> + /// Gets or sets the ProcessParametersTablesGroups. + /// </summary> + public DbSet<ProcessParametersTablesGroup> ProcessParametersTablesGroups + { + get; set; + } + + /// <summary> + /// Gets or sets the Rmls. + /// </summary> + public DbSet<Rml> Rmls + { + get; set; + } + + /// <summary> + /// Gets or sets the Roles. + /// </summary> + public DbSet<Role> Roles + { + get; set; + } + + /// <summary> + /// Gets or sets the RolesPermissions. + /// </summary> + public DbSet<RolesPermission> RolesPermissions + { + get; set; + } + + /// <summary> + /// Gets or sets the Segments. + /// </summary> + public DbSet<Segment> Segments + { + get; set; + } + + /// <summary> + /// Gets or sets the SpoolTypes. + /// </summary> + public DbSet<SpoolType> SpoolTypes + { + get; set; + } + + /// <summary> + /// Gets or sets the SyncConfigurations. + /// </summary> + public DbSet<SyncConfiguration> SyncConfigurations + { + get; set; + } + + /// <summary> + /// Gets or sets the TechDispensers. + /// </summary> + public DbSet<TechDispenser> TechDispensers + { + get; set; + } + + /// <summary> + /// Gets or sets the TechHeaters. + /// </summary> + public DbSet<TechHeater> TechHeaters + { + get; set; + } + + /// <summary> + /// Gets or sets the TechIos. + /// </summary> + public DbSet<TechIo> TechIos + { + get; set; + } + + /// <summary> + /// Gets or sets the TechMonitors. + /// </summary> + public DbSet<TechMonitor> TechMonitors + { + get; set; + } + + /// <summary> + /// Gets or sets the TechMotors. + /// </summary> + public DbSet<TechMotor> TechMotors + { + get; set; + } + + /// <summary> + /// Gets or sets the TechValves. + /// </summary> + public DbSet<TechValf> TechValves + { + get; set; + } + + /// <summary> + /// Gets or sets the Users. + /// </summary> + public DbSet<User> Users + { + get; set; + } + + /// <summary> + /// Gets or sets the UsersRoles. + /// </summary> + public DbSet<UsersRole> UsersRoles + { + get; set; + } + + /// <summary> + /// Gets or sets the WindingMethods. + /// </summary> + public DbSet<WindingMethod> WindingMethods + { + get; set; + } + + } +} |
