From: <all...@us...> - 2009-09-22 23:07:29
|
Revision: 3 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=3&view=rev Author: allancascante Date: 2009-09-22 23:07:13 +0000 (Tue, 22 Sep 2009) Log Message: ----------- Ticket #1 base projects files, it includes the database with all the base entities planned for the project. Added Paths: ----------- source/trunk/CronosControl/ source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlClassLibrary/ source/trunk/CronosControl/CronosControlClassLibrary/Business/ source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx source/trunk/CronosControl/CronosControlClassLibrary/CronosControl_log.ldf source/trunk/CronosControl/CronosControlClassLibrary/Properties/ source/trunk/CronosControl/CronosControlClassLibrary/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlClassLibrary/Properties/Settings.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/Properties/Settings.settings source/trunk/CronosControl/CronosControlClassLibrary/app.config source/trunk/CronosControl/CronosControlClassLibrary/bin/ source/trunk/CronosControl/CronosControlClassLibrary/bin/Debug/ source/trunk/CronosControl/CronosControlClassLibrary/obj/ source/trunk/CronosControl/CronosControlClassLibrary/obj/Debug/ source/trunk/CronosControl/CronosControlDatabase/ source/trunk/CronosControl/CronosControlDatabase/Change Scripts/ source/trunk/CronosControl/CronosControlDatabase/Create Scripts/ source/trunk/CronosControl/CronosControlDatabase/Create Scripts/CronosControl.sql source/trunk/CronosControl/CronosControlDatabase/Queries/ source/trunk/CronosControl/CronosControlWCFServices/ source/trunk/CronosControl/CronosControlWCFServices/App.config source/trunk/CronosControl/CronosControlWCFServices/CronosControlServices.csproj source/trunk/CronosControl/CronosControlWCFServices/Properties/ source/trunk/CronosControl/CronosControlWCFServices/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlWCFServices/bin/ source/trunk/CronosControl/CronosControlWCFServices/bin/Debug/ source/trunk/CronosControl/CronosControlWCFServices/obj/ source/trunk/CronosControl/CronosControlWCFServices/obj/Debug/ source/trunk/CronosControl/CronosControlWCFServices/obj/Debug/TempPE/ source/trunk/CronosControl/gpl-3.0.txt Added: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln (rev 0) +++ source/trunk/CronosControl/CronosControl.sln 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,75 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlServices", "CronosControlWCFServices\CronosControlServices.csproj", "{2743F502-58BF-47B9-81BC-781B77A43CAB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlDataAccessClassLibrary", "CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj", "{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}" +EndProject +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CronosControl", "..\..\WebSites\CronosControl\", "{FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}" + ProjectSection(WebsiteProperties) = preProject + TargetFramework = "3.5" + Debug.AspNetCompiler.VirtualPath = "/CronosControl" + Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/CronosControl" + Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + VWDPort = "3780" + DefaultWebSiteLanguage = "Visual C#" + EndProjectSection +EndProject +Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|.NET = Debug|.NET + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Release|.NET = Release|.NET + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|.NET.ActiveCfg = Debug|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|.NET.ActiveCfg = Release|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Any CPU.Build.0 = Release|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|.NET.ActiveCfg = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|.NET.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Any CPU.Build.0 = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Any CPU.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Any CPU.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.Build.0 = Debug|.NET + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl.Model</RootNamespace> + <AssemblyName>CronosControlClassLibrary</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <IsWebBootstrapper>false</IsWebBootstrapper> + <PublishUrl>publish\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <ApplicationRevision>0</ApplicationRevision> + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> + <UseApplicationTrust>false</UseApplicationTrust> + <BootstrapperEnabled>true</BootstrapperEnabled> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.Entity"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> + <Reference Include="System.Runtime.Serialization"> + <RequiredTargetFramework>3.0</RequiredTargetFramework> + </Reference> + <Reference Include="System.Security" /> + <Reference Include="System.Transactions" /> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="CronosControlModel.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>CronosControlModel.edmx</DependentUpon> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + <DependentUpon>Settings.settings</DependentUpon> + </Compile> + </ItemGroup> + <ItemGroup> + <None Include="app.config" /> + <EntityDeploy Include="CronosControlModel.edmx"> + <Generator>EntityModelCodeGenerator</Generator> + <LastGenOutput>CronosControlModel.Designer.cs</LastGenOutput> + <CustomToolNamespace>CronosControl.Model</CustomToolNamespace> + </EntityDeploy> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> + </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.SQL.Server.Compact.3.5"> + <Visible>False</Visible> + <ProductName>SQL Server Compact 3.5</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Sql.Server.Express.9.2"> + <Visible>False</Visible> + <ProductName>SQL Server 2005 Express Edition SP2 %28x86%29</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> + <Visible>False</Visible> + <ProductName>Windows Installer 3.1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + </ItemGroup> + <ItemGroup> + <Folder Include="Business\" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,18 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <PublishUrlHistory> + </PublishUrlHistory> + <InstallUrlHistory> + </InstallUrlHistory> + <SupportUrlHistory> + </SupportUrlHistory> + <UpdateUrlHistory> + </UpdateUrlHistory> + <BootstrapperUrlHistory> + </BootstrapperUrlHistory> + <FallbackCulture>en-US</FallbackCulture> + <VerifyUploadedFiles>false</VerifyUploadedFiles> + <ErrorReportUrlHistory> + </ErrorReportUrlHistory> + </PropertyGroup> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,4813 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.3082 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Calendar_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Calendar", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Calendar))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Holiday_Calendar", "Calendar", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Calendar), "Holiday", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Holiday))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Client_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Client))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_Client", "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Client), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Role_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Role))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Role", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Role), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeCategory", "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeCategory), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User2", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Project), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_UserProjectRole", "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.UserProjectRole), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Tasks_Project1", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Task))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_Tasks", "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Task), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeCategory_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeCategory))] + +// Original file name: +// Generation date: 9/21/2009 5:38:44 PM +namespace CronosControl.Model +{ + + /// <summary> + /// There are no comments for CronosControlEntities in the schema. + /// </summary> + public partial class CronosControlEntities : global::System.Data.Objects.ObjectContext + { + /// <summary> + /// Initializes a new CronosControlEntities object using the connection string found in the 'CronosControlEntities' section of the application configuration file. + /// </summary> + public CronosControlEntities() : + base("name=CronosControlEntities", "CronosControlEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new CronosControlEntities object. + /// </summary> + public CronosControlEntities(string connectionString) : + base(connectionString, "CronosControlEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new CronosControlEntities object. + /// </summary> + public CronosControlEntities(global::System.Data.EntityClient.EntityConnection connection) : + base(connection, "CronosControlEntities") + { + this.OnContextCreated(); + } + partial void OnContextCreated(); + /// <summary> + /// There are no comments for Calendar in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Calendar> Calendar + { + get + { + if ((this._Calendar == null)) + { + this._Calendar = base.CreateQuery<Calendar>("[Calendar]"); + } + return this._Calendar; + } + } + private global::System.Data.Objects.ObjectQuery<Calendar> _Calendar; + /// <summary> + /// There are no comments for Client in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Client> Client + { + get + { + if ((this._Client == null)) + { + this._Client = base.CreateQuery<Client>("[Client]"); + } + return this._Client; + } + } + private global::System.Data.Objects.ObjectQuery<Client> _Client; + /// <summary> + /// There are no comments for Company in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Company> Company + { + get + { + if ((this._Company == null)) + { + this._Company = base.CreateQuery<Company>("[Company]"); + } + return this._Company; + } + } + private global::System.Data.Objects.ObjectQuery<Company> _Company; + /// <summary> + /// There are no comments for CostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<CostCenter> CostCenter + { + get + { + if ((this._CostCenter == null)) + { + this._CostCenter = base.CreateQuery<CostCenter>("[CostCenter]"); + } + return this._CostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<CostCenter> _CostCenter; + /// <summary> + /// There are no comments for Document in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Document> Document + { + get + { + if ((this._Document == null)) + { + this._Document = base.CreateQuery<Document>("[Document]"); + } + return this._Document; + } + } + private global::System.Data.Objects.ObjectQuery<Document> _Document; + /// <summary> + /// There are no comments for Holiday in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Holiday> Holiday + { + get + { + if ((this._Holiday == null)) + { + this._Holiday = base.CreateQuery<Holiday>("[Holiday]"); + } + return this._Holiday; + } + } + private global::System.Data.Objects.ObjectQuery<Holiday> _Holiday; + /// <summary> + /// There are no comments for Project in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Project> Project + { + get + { + if ((this._Project == null)) + { + this._Project = base.CreateQuery<Project>("[Project]"); + } + return this._Project; + } + } + private global::System.Data.Objects.ObjectQuery<Project> _Project; + /// <summary> + /// There are no comments for ProjectCostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<ProjectCostCenter> ProjectCostCenter + { + get + { + if ((this._ProjectCostCenter == null)) + { + this._ProjectCostCenter = base.CreateQuery<ProjectCostCenter>("[ProjectCostCenter]"); + } + return this._ProjectCostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<ProjectCostCenter> _ProjectCostCenter; + /// <summary> + /// There are no comments for ProjectDocument in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<ProjectDocument> ProjectDocument + { + get + { + if ((this._ProjectDocument == null)) + { + this._ProjectDocument = base.CreateQuery<ProjectDocument>("[ProjectDocument]"); + } + return this._ProjectDocument; + } + } + private global::System.Data.Objects.ObjectQuery<ProjectDocument> _ProjectDocument; + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Role> Role + { + get + { + if ((this._Role == null)) + { + this._Role = base.CreateQuery<Role>("[Role]"); + } + return this._Role; + } + } + private global::System.Data.Objects.ObjectQuery<Role> _Role; + /// <summary> + /// There are no comments for TimeCategory in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeCategory> TimeCategory + { + get + { + if ((this._TimeCategory == null)) + { + this._TimeCategory = base.CreateQuery<TimeCategory>("[TimeCategory]"); + } + return this._TimeCategory; + } + } + private global::System.Data.Objects.ObjectQuery<TimeCategory> _TimeCategory; + /// <summary> + /// There are no comments for TimeSheet in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheet> TimeSheet + { + get + { + if ((this._TimeSheet == null)) + { + this._TimeSheet = base.CreateQuery<TimeSheet>("[TimeSheet]"); + } + return this._TimeSheet; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheet> _TimeSheet; + /// <summary> + /// There are no comments for TimeSheetCostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetCostCenter> TimeSheetCostCenter + { + get + { + if ((this._TimeSheetCostCenter == null)) + { + this._TimeSheetCostCenter = base.CreateQuery<TimeSheetCostCenter>("[TimeSheetCostCenter]"); + } + return this._TimeSheetCostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetCostCenter> _TimeSheetCostCenter; + /// <summary> + /// There are no comments for TimeSheetHour in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetHour> TimeSheetHour + { + get + { + if ((this._TimeSheetHour == null)) + { + this._TimeSheetHour = base.CreateQuery<TimeSheetHour>("[TimeSheetHour]"); + } + return this._TimeSheetHour; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetHour> _TimeSheetHour; + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<User> User + { + get + { + if ((this._User == null)) + { + this._User = base.CreateQuery<User>("[User]"); + } + return this._User; + } + } + private global::System.Data.Objects.ObjectQuery<User> _User; + /// <summary> + /// There are no comments for UserProjectRole in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<UserProjectRole> UserProjectRole + { + get + { + if ((this._UserProjectRole == null)) + { + this._UserProjectRole = base.CreateQuery<UserProjectRole>("[UserProjectRole]"); + } + return this._UserProjectRole; + } + } + private global::System.Data.Objects.ObjectQuery<UserProjectRole> _UserProjectRole; + /// <summary> + /// There are no comments for IdUserProjectRoleDocument in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument> IdUserProjectRoleDocument + { + get + { + if ((this._IdUserProjectRoleDocument == null)) + { + this._IdUserProjectRoleDocument = base.CreateQuery<IdUserProjectRoleDocument>("[IdUserProjectRoleDocument]"); + } + return this._IdUserProjectRoleDocument; + } + } + private global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument> _IdUserProjectRoleDocument; + /// <summary> + /// There are no comments for Task in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Task> Task + { + get + { + if ((this._Task == null)) + { + this._Task = base.CreateQuery<Task>("[Task]"); + } + return this._Task; + } + } + private global::System.Data.Objects.ObjectQuery<Task> _Task; + /// <summary> + /// There are no comments for Calendar in the schema. + /// </summary> + public void AddToCalendar(Calendar calendar) + { + base.AddObject("Calendar", calendar); + } + /// <summary> + /// There are no comments for Client in the schema. + /// </summary> + public void AddToClient(Client client) + { + base.AddObject("Client", client); + } + /// <summary> + /// There are no comments for Company in the schema. + /// </summary> + public void AddToCompany(Company company) + { + base.AddObject("Company", company); + } + /// <summary> + /// There are no comments for CostCenter in the schema. + /// </summary> + public void AddToCostCenter(CostCenter costCenter) + { + base.AddObject("CostCenter", costCenter); + } + /// <summary> + /// There are no comments for Document in the schema. + /// </summary> + public void AddToDocument(Document document) + { + base.AddObject("Document", document); + } + /// <summary> + /// There are no comments for Holiday in the schema. + /// </summary> + public void AddToHoliday(Holiday holiday) + { + base.AddObject("Holiday", holiday); + } + /// <summary> + /// There are no comments for Project in the schema. + /// </summary> + public void AddToProject(Project project) + { + base.AddObject("Project", project); + } + /// <summary> + /// There are no comments for ProjectCostCenter in the schema. + /// </summary> + public void AddToProjectCostCenter(ProjectCostCenter projectCostCenter) + { + base.AddObject("ProjectCostCenter", projectCostCenter); + } + /// <summary> + /// There are no comments for ProjectDocument in the schema. + /// </summary> + public void AddToProjectDocument(ProjectDocument projectDocument) + { + base.AddObject("ProjectDocument", projectDocument); + } + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public void AddToRole(Role role) + { + base.AddObject("Role", role); + } + /// <summary> + /// There are no comments for TimeCategory in the schema. + /// </summary> + public void AddToTimeCategory(TimeCategory timeCategory) + { + base.AddObject("TimeCategory", timeCategory); + } + /// <summary> + /// There are no comments for TimeSheet in the schema. + /// </summary> + public void AddToTimeSheet(TimeSheet timeSheet) + { + base.AddObject("TimeSheet", timeSheet); + } + /// <summary> + /// There are no comments for TimeSheetCostCenter in the schema. + /// </summary> + public void AddToTimeSheetCostCenter(TimeSheetCostCenter timeSheetCostCenter) + { + base.AddObject("TimeSheetCostCenter", timeSheetCostCenter); + } + /// <summary> + /// There are no comments for TimeSheetHour in the schema. + /// </summary> + public void AddToTimeSheetHour(TimeSheetHour timeSheetHour) + { + base.AddObject("TimeSheetHour", timeSheetHour); + } + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public void AddToUser(User user) + { + base.AddObject("User", user); + } + /// <summary> + /// There are no comments for UserProjectRole in the schema. + /// </summary> + public void AddToUserProjectRole(UserProjectRole userProjectRole) + { + base.AddObject("UserProjectRole", userProjectRole); + } + /// <summary> + /// There are no comments for IdUserProjectRoleDocument in the schema. + /// </summary> + public void AddToIdUserProjectRoleDocument(IdUserProjectRoleDocument idUserProjectRoleDocument) + { + base.AddObject("IdUserProjectRoleDocument", idUserProjectRoleDocument); + } + /// <summary> + /// There are no comments for Task in the schema. + /// </summary> + public void AddToTask(Task task) + { + base.AddObject("Task", task); + } + } + /// <summary> + /// Base Calendars + /// </summary> + /// <LongDescription> + /// Calendar allows to define work schedules + /// </LongDescription> + /// <KeyProperties> + /// IdCalendar + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="CronosControlModel", Name="Calendar")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Calendar : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Calendar object. + /// </summary> + /// <param name="idCalendar">Initial value of IdCalendar.</param> + /// <param name="name">Initial value of Name.</param> + /// <param name="createdAt">Initial value of CreatedAt.</param> + /// <param name="enabled">Initial value of Enabled.</param> + public static Calendar CreateCalendar(int idCalendar, string name, global::System.DateTime createdAt, bool enabled) + { + Calendar calendar = new Calendar(); + calendar.IdCalendar = idCalendar; + calendar.Name = name; + calendar.CreatedAt = createdAt; + calendar.Enabled = enabled; + return calendar; + } + /// <summary> + /// Unique identifier + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public int IdCalendar + { + get + { + return this._IdCalendar; + } + set + { + this.OnIdCalendarChanging(value); + this.ReportPropertyChanging("IdCalendar"); + this._IdCalendar = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IdCalendar"); + this.OnIdCalendarChanged(); + } + } + private int _IdCalendar; + partial void OnIdCalendarChanging(int value); + partial void OnIdCalendarChanged(); + /// <summary> + /// Calendar Name + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Name + { + get + { + return this._Name; + } + set + { + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); + } + } + private string _Name; + partial void OnNameChanging(string value); + partial void OnNameChanged(); + /// <summary> + /// Calendar Description + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Description + { + get + { + return this._Description; + } + set + { + this.OnDescriptionChanging(value); + this.ReportPropertyChanging("Description"); + this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Description"); + this.OnDescriptionChanged(); + } + } + private string _Description; + partial void OnDescriptionChanging(string value); + partial void OnDescriptionChanged(); + /// <summary> + /// Data Until the calendar should be considered valid + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> ValidUntil + { + get + { + return this._ValidUntil; + } + set + { + this.OnValidUntilChanging(value); + this.ReportPropertyChanging("ValidUntil"); + this._ValidUntil = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ValidUntil"); + this.OnValidUntilChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _ValidUntil; + partial void OnValidUntilChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnValidUntilChanged(); + /// <summary> + /// Creation Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.DateTime CreatedAt + { + get + { + return this._CreatedAt; + } + set + { + this.OnCreatedAtChanging(value); + this.ReportPropertyChanging("CreatedAt"); + this._CreatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedAt"); + this.OnCreatedAtChanged(); + } + } + private global::System.DateTime _CreatedAt; + partial void OnCreatedAtChanging(global::System.DateTime value); + partial void OnCreatedAtChanged(); + /// <summary> + /// Updated Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> UpdatedAt + { + get + { + return this._UpdatedAt; + } + set + { + this.OnUpdatedAtChanging(value); + this.ReportPropertyChanging("UpdatedAt"); + this._UpdatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UpdatedAt"); + this.OnUpdatedAtChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _UpdatedAt; + partial void OnUpdatedAtChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnUpdatedAtChanged(); + /// <summary> + /// Enabled or disabled, calendars cannot be deleted + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public bool Enabled + { + get + { + return this._Enabled; + } + set + { + this.OnEnabledChanging(value); + this.ReportPropertyChanging("Enabled"); + this._Enabled = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("Enabled"); + this.OnEnabledChanged(); + } + } + private bool _Enabled; + partial void OnEnabledChanging(bool value); + partial void OnEnabledChanged(); + /// <summary> + /// Calendar Company + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Calendar_Company", "Company")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public Company Company + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company").Value; + } + set + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company").Value = value; + } + } + /// <summary> + /// Calendar Company + /// </summary> + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<Company> CompanyReference + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company", value); + } + } + } + /// <summary> + /// Calendar Holidays + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Holiday_Calendar", "Holiday")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<Holiday> Holiday + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Holiday>("CronosControlModel.FK_Holiday_Calendar", "Holiday"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Holiday>("CronosControlModel.FK_Holiday_Calendar", "Holiday", value); + } + } + } + } + /// <summary> + /// The client company or individual + /// </summary> + /// <LongDescription> + /// Client is a company or an individual requiring work for different projects + /// </LongDescription> + /// <KeyProperties> + /// IdClient + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="CronosControlModel", Name="Client")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Client : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Client object. + /// </summary> + /// <param name="idClient">Initial value of IdClient.</param> + /// <param name="name">Initial value of Name.</param> + /// <param name="createdAt">Initial value of CreatedAt.</param> + /// <param name="enabled">Initial value of Enabled.</param> + public static Client CreateClient(int idClient, string name, global::System.DateTime createdAt, bool enabled) + { + Client client = new Client(); + client.IdClient = idClient; + client.Name = name; + client.CreatedAt = createdAt; + client.Enabled = enabled; + return client; + } + /// <summary> + /// Unique Identifier + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public int IdClient + { + get + { + return this._IdClient; + } + set + { + this.OnIdClientChanging(value); + this.ReportPropertyChanging("IdClient"); + this._IdClient = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IdClient"); + this.OnIdClientChanged(); + } + } + private int _IdClient; + partial void OnIdClientChanging(int value); + partial void OnIdClientChanged(); + /// <summary> + /// Client's name + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Name + { + get + { + return this._Name; + } + set + { + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); + } + } + private string _Name; + partial void OnNameChanging(string value); + partial void OnNameChanged(); + /// <summary> + /// Client's description + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Description + { + get + { + return this._Description; + } + set + { + this.OnDescriptionChanging(value); + this.ReportPropertyChanging("Description"); + this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Description"); + this.OnDescriptionChanged(); + } + } + private string _Description; + partial void OnDescriptionChanging(string value); + partial void OnDescriptionChanged(); + /// <summary> + /// Cretion Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.DateTime CreatedAt + { + get + { + return this._CreatedAt; + } + set + { + this.OnCreatedAtChanging(value); + this.ReportPropertyChanging("CreatedAt"); + this._CreatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedAt"); + this.OnCreatedAtChanged(); + } + } + private global::System.DateTime _CreatedAt; + partial void OnCreatedAtChanging(global::System.DateTime value); + partial void OnCreatedAtChanged(); + /// <summary> + /// Updated date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> UpdatedAt + { + get + { + return this._UpdatedAt; + } + set + { + this.OnUpdatedAtChanging(value); + this.ReportPropertyChanging("UpdatedAt"); + this._UpdatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UpdatedAt"); + this.OnUpdatedAtChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _UpdatedAt; + partial void OnUpdatedAtChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnUpdatedAtChanged(); + /// <summary> + /// Is Enabled + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public bool Enabled + { + get + { + return this._Enabled; + } + set + { + this.OnEnabledChanging(value); + this.ReportPropertyChanging("Enabled"); + this._Enabled = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("Enabled"); + this.OnEnabledChanged(); + } + } + private bool _Enabled; + partial void OnEnabledChanging(bool value); + partial void OnEnabledChanged(); + /// <summary> + /// This client's company + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Client_Company", "Company")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public Company Company + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.Ge... [truncated message content] |