Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions BizLayer/App.config

This file was deleted.

90 changes: 9 additions & 81 deletions BizLayer/BizLayer.csproj
Original file line number Diff line number Diff line change
@@ -1,87 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{19592A8F-7C58-4221-8124-D38ACD8F5E31}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>BizLayer</RootNamespace>
<AssemblyName>BizLayer</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
</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="Autofac">
<HintPath>..\packages\Autofac.3.5.0\lib\net40\Autofac.dll</HintPath>
</Reference>
<Reference Include="AutoMapper">
<HintPath>..\packages\AutoMapper.3.2.1\lib\net40\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="AutoMapper.Net4">
<HintPath>..\packages\AutoMapper.3.2.1\lib\net40\AutoMapper.Net4.dll</HintPath>
</Reference>
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.dll</HintPath>
</Reference>
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
</Reference>
<Reference Include="GenericServices, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\GenericServices.1.0.0-beta4-003\lib\GenericServices.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup\BizLayerInitialise.cs" />
<Compile Include="Startup\BizLayerModule.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DataLayer\DataLayer.csproj">
<Project>{264e1878-12de-4099-b8d7-cc53a73fea49}</Project>
<Name>DataLayer</Name>
</ProjectReference>
<ProjectReference Include="..\DataLayer\DataLayer.csproj" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\AutoMapper.3.2.1\tools\AutoMapper.targets" Condition="Exists('..\packages\AutoMapper.3.2.1\tools\AutoMapper.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>

</Project>
62 changes: 0 additions & 62 deletions BizLayer/Properties/AssemblyInfo.cs

This file was deleted.

6 changes: 1 addition & 5 deletions BizLayer/Startup/BizLayerInitialise.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region licence
#region licence
// The MIT License (MIT)
//
// Filename: BizLayerInitialise.cs
Expand All @@ -24,7 +24,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#endregion
using DataLayer.Startup;

namespace BizLayer.Startup
{
Expand All @@ -33,14 +32,11 @@ namespace BizLayer.Startup
/// </summary>
public static class BizLayerInitialise
{

/// <summary>
/// This should be called at Startup
/// </summary>
public static void InitialiseThis()
{


}
}
}
46 changes: 0 additions & 46 deletions BizLayer/Startup/BizLayerModule.cs

This file was deleted.

7 changes: 0 additions & 7 deletions BizLayer/packages.config

This file was deleted.

25 changes: 0 additions & 25 deletions DataLayer/App.config

This file was deleted.

11 changes: 3 additions & 8 deletions DataLayer/DataClasses/Concrete/Blog.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region licence
#region licence
// The MIT License (MIT)
//
// Filename: Blog.cs
Expand Down Expand Up @@ -32,6 +32,7 @@ namespace DataLayer.DataClasses.Concrete
public class Blog
{
public int BlogId { get; set; }

[MinLength(2)]
[MaxLength(64)]
[Required]
Expand All @@ -43,11 +44,5 @@ public class Blog
public string EmailAddress { get; set; }

public ICollection<Post> Posts { get; set; }

public override string ToString()
{
return string.Format("BlogId: {0}, Name: {1}, EmailAddress: {2}, NumPosts: {3}",
BlogId, Name, EmailAddress, Posts == null ? "null" : Posts.Count.ToString());
}
}
}
}
6 changes: 3 additions & 3 deletions DataLayer/DataClasses/Concrete/Helpers/TrackUpdate.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region licence
#region licence
// The MIT License (MIT)
//
// Filename: TrackUpdate.cs
Expand Down Expand Up @@ -30,7 +30,7 @@ namespace DataLayer.DataClasses.Concrete.Helpers
{
public abstract class TrackUpdate
{
public DateTime LastUpdated { get; protected set; }
public DateTime LastUpdated { get; set; }

internal void UpdateTrackingInfo()
{
Expand All @@ -39,7 +39,7 @@ internal void UpdateTrackingInfo()

protected TrackUpdate()
{
UpdateTrackingInfo(); //on creation then set date
UpdateTrackingInfo();
}
}
}
Loading