Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
donker committed Mar 29, 2015
1 parent d8dd83d commit fce1532
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 52 deletions.
2 changes: 1 addition & 1 deletion Connect.Projects.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http, Version=4.0.30319.33440 built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Reference Include="System.Net.Http, Version=4.0.30319.33440 built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL built by: FX45W81RTMREL, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>_References\System.Net.Http.dll</HintPath>
<Private>False</Private>
Expand Down
6 changes: 3 additions & 3 deletions My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:

<Assembly: Guid("4fc1a7f9-2b5c-4931-bee5-8257d7c2b298")>
<Assembly: AssemblyVersion("01.00.01")>
<Assembly: AssemblyInformationalVersion("01.00.01")>
<Assembly: AssemblyFileVersion("01.00.01")>
<Assembly: AssemblyVersion("01.00.02")>
<Assembly: AssemblyInformationalVersion("01.00.02")>
<Assembly: AssemblyFileVersion("01.00.02")>
61 changes: 61 additions & 0 deletions _BuildSupport/CodeStats/CodeStats_1.0.2.0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<code-summaries>
<code-summary date="2015-03-29T15:02:16.7215729+02:00" buildname="1.0.2.0">
<linecount label="VB" totalLineCount="5508" emptyLineCount="728" commentLineCount="366">
<file-summaries>
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\AuditableEntity.vb" totalLineCount="28" emptyLineCount="6" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ContextSecurity.vb" totalLineCount="21" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\FilesStatus.vb" totalLineCount="20" emptyLineCount="1" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\Globals.vb" totalLineCount="176" emptyLineCount="17" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\Image.vb" totalLineCount="73" emptyLineCount="11" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ImageCollection.vb" totalLineCount="143" emptyLineCount="16" commentLineCount="3" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ModuleApiController.vb" totalLineCount="61" emptyLineCount="7" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ModuleBase.vb" totalLineCount="85" emptyLineCount="16" commentLineCount="3" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ModuleSettings.vb" totalLineCount="77" emptyLineCount="13" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\ModuleWebPage.vb" totalLineCount="84" emptyLineCount="12" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\RazorControl.vb" totalLineCount="48" emptyLineCount="11" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\Resizer.vb" totalLineCount="76" emptyLineCount="16" commentLineCount="3" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Common\RouteMapper.vb" totalLineCount="19" emptyLineCount="3" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\LicenseTypes\LicenseTypesController.vb" totalLineCount="47" emptyLineCount="19" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\LicenseTypes\LicenseTypesController_Services.vb" totalLineCount="29" emptyLineCount="6" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\Projects\ProjectsController.vb" totalLineCount="53" emptyLineCount="19" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\Projects\ProjectsController_Services.vb" totalLineCount="105" emptyLineCount="10" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\ProjectTypes\ProjectTypesController.vb" totalLineCount="47" emptyLineCount="19" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\ProjectTypes\ProjectTypesController_Services.vb" totalLineCount="21" emptyLineCount="5" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\AlbumController.vb" totalLineCount="208" emptyLineCount="16" commentLineCount="4" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Controllers\ModuleController.vb" totalLineCount="26" emptyLineCount="3" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Data\RepositoryImpl.vb" totalLineCount="116" emptyLineCount="15" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Documents\ProjectDocument.vb" totalLineCount="164" emptyLineCount="23" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\angular-file-upload.min.js" totalLineCount="6" emptyLineCount="0" commentLineCount="5" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\angular-route.min.js" totalLineCount="15" emptyLineCount="0" commentLineCount="6" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\angular.min.js" totalLineCount="250" emptyLineCount="0" commentLineCount="6" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\connect.projects.js" totalLineCount="276" emptyLineCount="12" commentLineCount="1" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\es5-sham.min.js" totalLineCount="7" emptyLineCount="0" commentLineCount="6" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\es5-shim.min.js" totalLineCount="7" emptyLineCount="0" commentLineCount="6" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\jquery.colorbox.js" totalLineCount="1084" emptyLineCount="199" commentLineCount="79" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\simple.datagrid.js" totalLineCount="968" emptyLineCount="77" commentLineCount="25" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\js\stupidtable.min.js" totalLineCount="4" emptyLineCount="0" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\LicenseTypes\LicenseType.vb" totalLineCount="33" emptyLineCount="7" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\LicenseTypes\LicenseTypeBase_Methods.vb" totalLineCount="64" emptyLineCount="11" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\LicenseTypes\LicenseTypeBase_Properties.vb" totalLineCount="46" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\Projects\ProjectBase_Methods.vb" totalLineCount="120" emptyLineCount="11" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\Projects\ProjectBase_Properties.vb" totalLineCount="103" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\Projects\Project_Interfaces.vb" totalLineCount="51" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\Projects\Project_Properties.vb" totalLineCount="65" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\ProjectTypes\ProjectType.vb" totalLineCount="32" emptyLineCount="7" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\ProjectTypes\ProjectTypeBase_Methods.vb" totalLineCount="61" emptyLineCount="11" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Models\ProjectTypes\ProjectTypeBase_Properties.vb" totalLineCount="42" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\LicenseTypesBaseRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\LicenseTypesRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\ProjectsBaseRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\ProjectsRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\ProjectTypesBaseRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Repositories\ProjectTypesRepository.vb" totalLineCount="11" emptyLineCount="4" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\ModuleHome.vb" totalLineCount="33" emptyLineCount="9" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Settings.ascx" totalLineCount="65" emptyLineCount="1" commentLineCount="0" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Settings.ascx.designer.vb" totalLineCount="285" emptyLineCount="33" commentLineCount="218" />
<file-summary name="D:\Websites\www.dnnconnect.dev\www\DesktopModules\Connect\Projects\Settings.ascx.vb" totalLineCount="98" emptyLineCount="13" commentLineCount="1" />
</file-summaries>
</linecount>
</code-summary>
</code-summaries>
39 changes: 33 additions & 6 deletions _BuildSupport/Install.00.00.00.SqlDataProvider
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
/******* TABLES *******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_Projects_LicenseTypes') AND type in (N'U'))
BEGIN
CREATE TABLE {databaseOwner}{objectQualifier}Connect_Projects_LicenseTypes(
[LicenseTypeId] [int] IDENTITY(1,1) NOT NULL,
[TypeDescription] [nvarchar](300) NOT NULL,
[ProjectColor] [varchar](10) NOT NULL,
CONSTRAINT PK_{objectQualifier}Connect_Projects_LicenseTypes PRIMARY KEY CLUSTERED
(
[LicenseTypeId] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF)
)
END
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
Expand All @@ -9,7 +26,7 @@ CREATE TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects(
[ModuleId] [int] NOT NULL,
[Visible] [bit] NOT NULL,
[ProjectName] [nvarchar](1000) NOT NULL,
[ProjectType] [int] NOT NULL,
[LicenseTypeId] [int] NOT NULL,
[Url1] [nvarchar](500) NULL,
[Url2] [nvarchar](500) NULL,
[Status] [nvarchar](500) NULL,
Expand All @@ -23,6 +40,7 @@ CREATE TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects(
[CreatedOnDate] [datetime] NOT NULL,
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL,
[ProjectTypeId] [int] NOT NULL,
CONSTRAINT PK_{objectQualifier}Connect_Projects_Projects PRIMARY KEY CLUSTERED
(
[ProjectId] ASC
Expand All @@ -39,7 +57,6 @@ BEGIN
CREATE TABLE {databaseOwner}{objectQualifier}Connect_Projects_ProjectTypes(
[ProjectTypeId] [int] IDENTITY(1,1) NOT NULL,
[TypeDescription] [nvarchar](300) NOT NULL,
[ProjectColor] [varchar](10) NOT NULL,
CONSTRAINT PK_{objectQualifier}Connect_Projects_ProjectTypes PRIMARY KEY CLUSTERED
(
[ProjectTypeId] ASC
Expand All @@ -49,8 +66,16 @@ END
GO

/******* STRUCTURE *******/
IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'{databaseOwner}FK_{objectQualifier}Connect_Projects_Projects_LicenseTypes') AND parent_object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_Projects_Projects'))
ALTER TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects WITH CHECK ADD CONSTRAINT FK_{objectQualifier}Connect_Projects_Projects_LicenseTypes FOREIGN KEY([LicenseTypeId])
REFERENCES {databaseOwner}{objectQualifier}Connect_Projects_LicenseTypes ([LicenseTypeId])
ON DELETE CASCADE
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'{databaseOwner}FK_{objectQualifier}Connect_Projects_Projects_LicenseTypes') AND parent_object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_Projects_Projects'))
ALTER TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects CHECK CONSTRAINT FK_{objectQualifier}Connect_Projects_Projects_LicenseTypes
GO

IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'{databaseOwner}FK_{objectQualifier}Connect_Projects_Projects_ProjectTypes') AND parent_object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_Projects_Projects'))
ALTER TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects WITH CHECK ADD CONSTRAINT FK_{objectQualifier}Connect_Projects_Projects_ProjectTypes FOREIGN KEY([ProjectType])
ALTER TABLE {databaseOwner}{objectQualifier}Connect_Projects_Projects WITH CHECK ADD CONSTRAINT FK_{objectQualifier}Connect_Projects_Projects_ProjectTypes FOREIGN KEY([ProjectTypeId])
REFERENCES {databaseOwner}{objectQualifier}Connect_Projects_ProjectTypes ([ProjectTypeId])
ON DELETE CASCADE
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'{databaseOwner}FK_{objectQualifier}Connect_Projects_Projects_ProjectTypes') AND parent_object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_Projects_Projects'))
Expand Down Expand Up @@ -79,12 +104,14 @@ CREATE VIEW {databaseOwner}{objectQualifier}vw_Connect_Projects_Projects
AS
SELECT
p.*,
pt.TypeDescription,
pt.ProjectColor,
pt.TypeDescription ProjectType,
lt.TypeDescription LicenseType,
lt.ProjectColor,
uc.DisplayName AS CreatedByUser,
um.DisplayName AS LastModifiedByUser
FROM {databaseOwner}{objectQualifier}Connect_Projects_Projects p
INNER JOIN {databaseOwner}{objectQualifier}Connect_Projects_ProjectTypes pt ON p.ProjectType=pt.ProjectTypeId
INNER JOIN {databaseOwner}{objectQualifier}Connect_Projects_ProjectTypes pt ON p.ProjectTypeId=pt.ProjectTypeId
INNER JOIN {databaseOwner}{objectQualifier}Connect_Projects_LicenseTypes lt ON p.LicenseTypeId=lt.LicenseTypeId
LEFT JOIN {databaseOwner}{objectQualifier}Users uc ON uc.UserID = p.CreatedByUserID
LEFT JOIN {databaseOwner}{objectQualifier}Users um ON um.UserID = p.LastModifiedByUserID
GO
Expand Down
44 changes: 38 additions & 6 deletions _BuildSupport/InstallOrig.00.00.00.SqlDataProvider
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Connect_Projects_LicenseTypes]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Connect_Projects_LicenseTypes](
[LicenseTypeId] [int] IDENTITY(1,1) NOT NULL,
[TypeDescription] [nvarchar](300) NOT NULL,
[ProjectColor] [varchar](10) NOT NULL,
CONSTRAINT [PK_Connect_Projects_LicenseTypes] PRIMARY KEY CLUSTERED
(
[LicenseTypeId] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF)
)
END
GO



SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Connect_Projects_Projects]') AND type in (N'U'))
Expand All @@ -7,7 +25,7 @@ CREATE TABLE [dbo].[Connect_Projects_Projects](
[ModuleId] [int] NOT NULL,
[Visible] [bit] NOT NULL,
[ProjectName] [nvarchar](1000) NOT NULL,
[ProjectType] [int] NOT NULL,
[LicenseTypeId] [int] NOT NULL,
[Url1] [nvarchar](500) NULL,
[Url2] [nvarchar](500) NULL,
[Status] [nvarchar](500) NULL,
Expand All @@ -21,6 +39,7 @@ CREATE TABLE [dbo].[Connect_Projects_Projects](
[CreatedOnDate] [datetime] NOT NULL,
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL,
[ProjectTypeId] [int] NOT NULL,
CONSTRAINT [PK_Connect_Projects_Projects] PRIMARY KEY CLUSTERED
(
[ProjectId] ASC
Expand All @@ -38,7 +57,6 @@ BEGIN
CREATE TABLE [dbo].[Connect_Projects_ProjectTypes](
[ProjectTypeId] [int] IDENTITY(1,1) NOT NULL,
[TypeDescription] [nvarchar](300) NOT NULL,
[ProjectColor] [varchar](10) NOT NULL,
CONSTRAINT [PK_Connect_Projects_ProjectTypes] PRIMARY KEY CLUSTERED
(
[ProjectTypeId] ASC
Expand All @@ -49,8 +67,18 @@ GO



IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_Connect_Projects_Projects_LicenseTypes]') AND parent_object_id = OBJECT_ID(N'[dbo].[Connect_Projects_Projects]'))
ALTER TABLE [dbo].[Connect_Projects_Projects] WITH CHECK ADD CONSTRAINT [FK_Connect_Projects_Projects_LicenseTypes] FOREIGN KEY([LicenseTypeId])
REFERENCES [dbo].[Connect_Projects_LicenseTypes] ([LicenseTypeId])
ON DELETE CASCADE
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_Connect_Projects_Projects_LicenseTypes]') AND parent_object_id = OBJECT_ID(N'[dbo].[Connect_Projects_Projects]'))
ALTER TABLE [dbo].[Connect_Projects_Projects] CHECK CONSTRAINT [FK_Connect_Projects_Projects_LicenseTypes]
GO



IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_Connect_Projects_Projects_ProjectTypes]') AND parent_object_id = OBJECT_ID(N'[dbo].[Connect_Projects_Projects]'))
ALTER TABLE [dbo].[Connect_Projects_Projects] WITH CHECK ADD CONSTRAINT [FK_Connect_Projects_Projects_ProjectTypes] FOREIGN KEY([ProjectType])
ALTER TABLE [dbo].[Connect_Projects_Projects] WITH CHECK ADD CONSTRAINT [FK_Connect_Projects_Projects_ProjectTypes] FOREIGN KEY([ProjectTypeId])
REFERENCES [dbo].[Connect_Projects_ProjectTypes] ([ProjectTypeId])
ON DELETE CASCADE
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_Connect_Projects_Projects_ProjectTypes]') AND parent_object_id = OBJECT_ID(N'[dbo].[Connect_Projects_Projects]'))
Expand Down Expand Up @@ -82,23 +110,27 @@ SET QUOTED_IDENTIFIER ON




CREATE VIEW [dbo].[vw_Connect_Projects_Projects]
AS
SELECT
p.*,
pt.TypeDescription,
pt.ProjectColor,
pt.TypeDescription ProjectType,
lt.TypeDescription LicenseType,
lt.ProjectColor,
uc.DisplayName AS CreatedByUser,
um.DisplayName AS LastModifiedByUser
FROM dbo.Connect_Projects_Projects p
INNER JOIN dbo.Connect_Projects_ProjectTypes pt ON p.ProjectType=pt.ProjectTypeId
INNER JOIN dbo.Connect_Projects_ProjectTypes pt ON p.ProjectTypeId=pt.ProjectTypeId
INNER JOIN dbo.Connect_Projects_LicenseTypes lt ON p.LicenseTypeId=lt.LicenseTypeId
LEFT JOIN dbo.Users uc ON uc.UserID = p.CreatedByUserID
LEFT JOIN dbo.Users um ON um.UserID = p.LastModifiedByUserID






GO


Expand Down
Loading

0 comments on commit fce1532

Please sign in to comment.