From: <all...@us...> - 2009-10-29 02:49:04
|
Revision: 4 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=4&view=rev Author: allancascante Date: 2009-10-29 02:48:44 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Ticket #1 added new project for business layer and some base classes still not functional just for project organization demonstration purposes. Modified Paths: -------------- source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx source/trunk/CronosControl/CronosControlClassLibrary/CronosControl_log.ldf source/trunk/CronosControl/CronosControlClassLibrary/app.config Added Paths: ----------- source/trunk/CronosControl/CronosControl.vsmdi source/trunk/CronosControl/CronosControlBusinessClassLibrary/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/bin/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/bin/Debug/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/Debug/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/Debug/TempPE/ source/trunk/CronosControl/LocalTestRun.testrunconfig Removed Paths: ------------- source/trunk/CronosControl/CronosControlClassLibrary/Business/ Modified: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControl.sln 2009-10-29 02:48:44 UTC (rev 4) @@ -5,30 +5,22 @@ 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#" +Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlBusinessClassLibrary", "CronosControlBusinessClassLibrary\CronosControlBusinessClassLibrary.csproj", "{2D8FF602-961B-470C-AECF-817AFF0C4E9C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlBusinessClassLibraryTestProject", "CronosControlBusinessClassLibraryTestProject\CronosControlBusinessClassLibraryTestProject.csproj", "{16F82131-ABDB-46C6-9CB1-803FDFD7620C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A476650C-6685-4050-A3F2-1F911CA5791A}" + ProjectSection(SolutionItems) = preProject + CronosControl.vsmdi = CronosControl.vsmdi + LocalTestRun.testrunconfig = LocalTestRun.testrunconfig EndProjectSection EndProject -Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" -EndProject Global + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = CronosControl.vsmdi + EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET Debug|Any CPU = Debug|Any CPU @@ -58,16 +50,26 @@ {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 + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|.NET.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|.NET.ActiveCfg = Release|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Any CPU.Build.0 = Release|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|.NET.ActiveCfg = Debug|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|.NET.ActiveCfg = Release|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Any CPU.Build.0 = Release|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Added: source/trunk/CronosControl/CronosControl.vsmdi =================================================================== --- source/trunk/CronosControl/CronosControl.vsmdi (rev 0) +++ source/trunk/CronosControl/CronosControl.vsmdi 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006"> + <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6"> + <RunConfiguration id="217b22e8-edd5-4f11-8614-39748b0ef296" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" /> + </TestList> +</TestLists> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <configSections> + <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> + <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> + </configSections> + <loggingConfiguration name="Logging Application Block" tracingEnabled="true" + defaultCategory="General" logWarningsWhenNoCategoriesMatch="true"> + <listeners> + <add source="Enterprise Library Logging" formatter="Text Formatter" + log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Formatted EventLog TraceListener" /> + </listeners> + <formatters> + <add template="Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}" + type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Text Formatter" /> + </formatters> + <categorySources> + <add switchValue="All" name="General"> + <listeners> + <add name="Formatted EventLog TraceListener" /> + </listeners> + </add> + </categorySources> + <specialSources> + <allEvents switchValue="All" name="All Events" /> + <notProcessed switchValue="All" name="Unprocessed Category" /> + <errors switchValue="All" name="Logging Errors & Warnings"> + <listeners> + <add name="Formatted EventLog TraceListener" /> + </listeners> + </errors> + </specialSources> + </loggingConfiguration> + <exceptionHandling> + <exceptionPolicies> + <add name="Exception Policy"> + <exceptionTypes> + <add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" + postHandlingAction="NotifyRethrow" name="Exception"> + <exceptionHandlers> + <add logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" + formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + priority="0" useDefaultLogger="false" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Logging Handler" /> + </exceptionHandlers> + </add> + </exceptionTypes> + </add> + </exceptionPolicies> + </exceptionHandling> +</configuration> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Business.Util.ErrorHandling; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Calendar's Management + /// </summary> + public class Calendars : ICalendars + { + + #region IBusiness<Calendar> Members + + public List<IBusinessError> Save(Calendar entity) + { + throw new NotImplementedException(); + } + + public List<IBusinessError> Enable(Calendar entity, bool enable) + { + throw new NotImplementedException(); + } + + public List<IBusinessError> Validate(Calendar entity) + { + throw new NotImplementedException(); + } + + #endregion + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Client's Management + /// </summary> + public class Clients + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Companies' Management + /// </summary> + public class Companies + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Cost Center's Management + /// </summary> + public class CostCenters + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Document's Management + /// </summary> + class Documents + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Business.Util.ErrorHandling; + +namespace CronosControl.Business +{ + public interface IBusiness<T> + { + /// <summary> + /// Saves or updates the given entity, if it was saved before it will be updated if is a new instance it will saved as a new entry + /// </summary> + /// <param name="entity">The entity to save</param> + /// <returns>an empty error list in case the entity was saved successfully, an error list with the errors encounter for the operation in other case</returns> + List<IBusinessError> Save(T entity); + + /// <summary> + /// Enables the given entity. It has to be a valid previously saved entity + /// </summary> + /// <param name="entity">The entity to enable</param> + /// <param name="enable">Enable</param> + /// <returns>an empty error list in case the entity was disabled successfully, an error list with the errors encounter for the operation in other case</returns> + List<IBusinessError> Enable(T entity, bool enable); + + /// <summary> + /// Validates the values in the entity attributes + /// </summary> + /// <param name="entity">the entity with the values to validate</param> + /// <returns>the list of errors found</returns> + List<IBusinessError> Validate(T entity); + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Calendar's Management + /// </summary> + public interface ICalendars : IBusiness<Calendar> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Client's Management + /// </summary> + public interface IClients : IBusiness<Client> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Companies' Management + /// </summary> + public interface ICompanies : IBusiness<Company> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Cost Center's Management + /// </summary> + public interface ICostCenters : IBusiness<CostCenter> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Document's Management + /// </summary> + public interface IDocuments : IBusiness<Document> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Project's Management + /// </summary> + public interface IProjects : IBusiness<Project> + { + + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Roles's Management + /// </summary> + public interface IRoles : IBusiness<Role> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Task's Management + /// </summary> + public interface ITasks : IBusiness<Task> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Categories' Management + /// </summary> + public interface ITimeCategories : IBusiness<TimeCategory> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Time Sheet's Management + /// </summary> + public interface ITimeSheets : IBusiness<TimeSheet> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for User's Management + /// </summary> + public interface IUsers : IBusiness<User> + { + + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; +using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Project's Management + /// </summary> + public class Projects : IProjects + { + + #region IBusiness<Project> Members + + public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Save(Project entity) + { + throw new NotImplementedException(); + } + + public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Enable(Project entity, bool enable) + { + throw new NotImplementedException(); + } + + public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Validate(Project entity) + { + throw new NotImplementedException(); + } + + #endregion + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Role's Management + /// </summary> + class Roles + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Task's Management + /// </summary> + class Tasks + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Categories' Management + /// </summary> + public class TimeCategory + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Sheet's Management + /// </summary> + public class TimeSheets + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,80 @@ +using System; +using CronosControl.Model; +using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; +using System.Collections.Generic; +using CronosControl.Business.Util.ErrorHandling; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for User's Management + /// </summary> + public class Users : IUsers + { + private CronosControlEntities cronosControlEntities; + + public CronosControlEntities CronosControlEntities + { + get { return cronosControlEntities; } + set { cronosControlEntities = value; } + } + + #region IBusiness<User> Members + + public List<IBusinessError> Save(User entity) + { + cronosControlEntities = new CronosControlEntities(); + List<IBusinessError> errors = new List<IBusinessError>(); + try + { + Object savedEntity = null; + + if (cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) + { + CronosControlEntities.Attach(entity); + CronosControlEntities.SaveChanges(); + return errors; + } + cronosControlEntities.AddToUser(entity); + return errors; + } + catch (Exception ex) + { + ExceptionPolicy.HandleException(ex, "Exception Policy"); + errors.Add(new ExceptionBusinessError(ex)); + return errors; + } + } + + + public List<IBusinessError> Enable(User entity, bool enable) + { + cronosControlEntities = new CronosControlEntities(); + List<IBusinessError> errors = new List<IBusinessError>(); + try + { + if (entity.Enabled) + { + return errors; + } + cronosControlEntities.Attach(entity); + entity.Enabled = enable; + cronosControlEntities.SaveChanges(); + return errors; + } + catch (Exception ex) + { + ExceptionPolicy.HandleException(ex, "Exception Policy"); + errors.Add(new ExceptionBusinessError(ex)); + return errors; + } + } + + public List<IBusinessError> Validate(User entity) + { + throw new NotImplementedException(); + } + + #endregion + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business.Util.ErrorHandling +{ + public interface IBusinessError + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,97 @@ +<?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>{2D8FF602-961B-470C-AECF-817AFF0C4E9C}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl</RootNamespace> + <AssemblyName>CronosControlBusinessClassLibrary</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </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="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <Reference Include="Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <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.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="Business\Calendars.cs" /> + <Compile Include="Business\Clients.cs" /> + <Compile Include="Business\Companies.cs" /> + <Compile Include="Business\CostCenters.cs" /> + <Compile Include="Business\Documents.cs" /> + <Compile Include="Business\IBusiness.cs" /> + <Compile Include="Business\ICalendars.cs" /> + <Compile Include="Business\IClients.cs" /> + <Compile Include="Business\ICompanies.cs" /> + <Compile Include="Business\ICostCenters.cs" /> + <Compile Include="Business\IDocuments.cs" /> + <Compile Include="Business\IProjects.cs" /> + <Compile Include="Business\IRoles.cs" /> + <Compile Include="Business\ITasks.cs" /> + <Compile Include="Business\ITimeCategories.cs" /> + <Compile Include="Business\ITimeSheets.cs" /> + <Compile Include="Business\IUsers.cs" /> + <Compile Include="Business\Projects.cs" /> + <Compile Include="Business\Roles.cs" /> + <Compile Include="Business\Tasks.cs" /> + <Compile Include="Business\TimeCategories.cs" /> + <Compile Include="Business\TimeSheets.cs" /> + <Compile Include="Business\Users.cs" /> + <Compile Include="Business\Util\ErrorHandling\BusinessError.cs" /> + <Compile Include="Business\Util\ErrorHandling\IBusinessError.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj"> + <Project>{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}</Project> + <Name>CronosControlDataAccessClassLibrary</Name> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </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/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CronosControlBusinessClassLibrary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Personal")] +[assembly: AssemblyProduct("CronosControlBusinessClassLibrary")] +[assembly: AssemblyCopyright("Copyright © Personal 2009")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9e2f6272-bbc8-48ff-83a4-0d8508695c72")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-10-29 02:48:44 UTC (rev 4) @@ -86,7 +86,6 @@ <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> @@ -135,9 +134,6 @@ <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. Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. -// Runtime Version:2.0.50727.3082 +// Runtime Version:2.0.50727.3603 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,29 +14,29 @@ [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_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))] [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_IdUserProjectRoleDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "UserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRoleDocument))] [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_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_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_Tasks_Project", "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_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_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_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_TimeSheetHourTimeCategory_TimeCategory", "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeCategory), "TimeSheetHourTimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHourTimeCategory))] [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))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHourTimeCategory_TimeSheetHour", "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheetHour), "TimeSheetHourTimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHourTimeCategory))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_UserProjectRole", "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.UserProjectRole), "UserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRoleDocument))] // Original file name: -// Generation date: 9/21/2009 5:38:44 PM +// Generation date: 10/28/2009 8:45:20 PM namespace CronosControl.Model { @@ -221,6 +221,21 @@ } private global::System.Data.Objects.ObjectQuery<Role> _Role; /// <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 TimeCategory in the schema. /// </summary> public global::System.Data.Objects.ObjectQuery<TimeCategory> TimeCategory @@ -281,6 +296,21 @@ } private global::System.Data.Objects.ObjectQuery<TimeSheetHour> _TimeSheetHour; /// <summary> + /// There are no comments for TimeSheetHourTimeCategory in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetHourTimeCategory> TimeSheetHourTimeCategory + { + get + { + if ((this._TimeSheetHourTimeCategory == null)) + { + this._TimeSheetHourTimeCategory = base.CreateQuery<TimeSheetHourTimeCategory>("[TimeSheetHourTimeCategory]"); + } + return this._TimeSheetHourTimeCategory; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetHourTimeCategory> _TimeSheetHourTimeCategory; + /// <summary> /// There are no comments for User in the schema. /// </summary> public global::System.Data.Objects.ObjectQuery<User> User @@ -311,36 +341,21 @@ } private global::System.Data.Objects.ObjectQuery<UserProjectRole> _UserProjectRole; /// <summary> - /// There are no comments for IdUserProjectRoleDocument in the schema. + /// There are no comments for UserProjectRoleDocument in the schema. /// </summary> - public global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument>... [truncated message content] |