Skip to content

Commit a24c994

Browse files
start
0 parents  commit a24c994

File tree

125 files changed

+214645
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+214645
-0
lines changed

CRM.Data/CRM.Data.csproj

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{E0D86E59-BEE5-4D0E-8673-EF0329BCEF5F}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>CRM.Data</RootNamespace>
11+
<AssemblyName>CRM.Data</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>bin\Debug\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release\</OutputPath>
28+
<DefineConstants>TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Reference Include="System" />
34+
<Reference Include="System.Core" />
35+
<Reference Include="System.Xml.Linq" />
36+
<Reference Include="System.Data.DataSetExtensions" />
37+
<Reference Include="Microsoft.CSharp" />
38+
<Reference Include="System.Data" />
39+
<Reference Include="System.Xml" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<Compile Include="Class1.cs" />
43+
<Compile Include="Dto\Client.cs" />
44+
<Compile Include="Dto\Manager.cs" />
45+
<Compile Include="Dto\Organization.cs" />
46+
<Compile Include="Dto\PhoneNumber.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
50+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
51+
Other similar extension points exist, see Microsoft.Common.targets.
52+
<Target Name="BeforeBuild">
53+
</Target>
54+
<Target Name="AfterBuild">
55+
</Target>
56+
-->
57+
</Project>

CRM.Data/Class1.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Data
8+
{
9+
public class Class1
10+
{
11+
}
12+
}

CRM.Data/Dto/Client.cs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Data.Dto
8+
{
9+
public class Client
10+
{
11+
public int Id { get; set; }
12+
13+
public int PhoneId { get; set; }
14+
public virtual PhoneNumber PhoneNumber { get; set; }
15+
16+
public string Name { get; set; }
17+
public string Address { get; set; }
18+
public string Discription { get; set; }
19+
20+
public int OrganizationId { get; set; }
21+
public virtual Organization Organization { get; set; }
22+
23+
public string Email { get; set; }
24+
25+
public int ManagerId { get; set; }
26+
public virtual Manager Manager { get; set; }
27+
}
28+
}

CRM.Data/Dto/Manager.cs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Data.Dto
8+
{
9+
public class Manager
10+
{
11+
public int Id { get; set; }
12+
public string Name { get; set; }
13+
public string Role { get; set; }
14+
}
15+
}

CRM.Data/Dto/Organization.cs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Data.Dto
8+
{
9+
public class Organization
10+
{
11+
public int Id { get; set; }
12+
public string Discription { get; set; }
13+
public string Address { get; set; }
14+
}
15+
}

CRM.Data/Dto/PhoneNumber.cs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Data.Dto
8+
{
9+
public class PhoneNumber
10+
{
11+
public int Id { get; set; }
12+
public string Number { get; set; }
13+
public string Type { get; set; }
14+
}
15+
}

CRM.Data/Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("CRM.Data")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("CRM.Data")]
13+
[assembly: AssemblyCopyright("Copyright © 2016")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("7b720a0e-c3c5-49e4-9c5e-a8f72b12bade")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

CRM.Data/bin/Debug/CRM.Data.dll

7.5 KB
Binary file not shown.

CRM.Data/bin/Debug/CRM.Data.pdb

7.5 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
D:\КУРСЫ\GIT\C#\CRM\CRM.Data\bin\Debug\CRM.Data.dll
2+
D:\КУРСЫ\GIT\C#\CRM\CRM.Data\bin\Debug\CRM.Data.pdb
3+
D:\КУРСЫ\GIT\C#\CRM\CRM.Data\obj\Debug\CRM.Data.csprojResolveAssemblyReference.cache
4+
D:\КУРСЫ\GIT\C#\CRM\CRM.Data\obj\Debug\CRM.Data.dll
5+
D:\КУРСЫ\GIT\C#\CRM\CRM.Data\obj\Debug\CRM.Data.pdb
Binary file not shown.

CRM.Data/obj/Debug/CRM.Data.dll

7.5 KB
Binary file not shown.

CRM.Data/obj/Debug/CRM.Data.pdb

7.5 KB
Binary file not shown.
Binary file not shown.

CRM.Data/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

Whitespace-only changes.

CRM.Data/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

Whitespace-only changes.

CRM.Data/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

Whitespace-only changes.

CRM.Inf/App.config

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6+
</configSections>
7+
<entityFramework>
8+
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
9+
<parameters>
10+
<parameter value="v11.0" />
11+
</parameters>
12+
</defaultConnectionFactory>
13+
<providers>
14+
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
15+
</providers>
16+
</entityFramework>
17+
</configuration>

CRM.Inf/CRM.Inf.csproj

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{3F0891E6-FEA2-4780-9193-FA9AAE1A5B3C}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>CRM.Inf</RootNamespace>
11+
<AssemblyName>CRM.Inf</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>bin\Debug\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release\</OutputPath>
28+
<DefineConstants>TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Reference Include="EntityFramework">
34+
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
35+
</Reference>
36+
<Reference Include="EntityFramework.SqlServer">
37+
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
38+
</Reference>
39+
<Reference Include="System" />
40+
<Reference Include="System.ComponentModel.DataAnnotations" />
41+
<Reference Include="System.Core" />
42+
<Reference Include="System.Xml.Linq" />
43+
<Reference Include="System.Data.DataSetExtensions" />
44+
<Reference Include="Microsoft.CSharp" />
45+
<Reference Include="System.Data" />
46+
<Reference Include="System.Xml" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<Compile Include="Class1.cs" />
50+
<Compile Include="Properties\AssemblyInfo.cs" />
51+
<Compile Include="RepositoryFiles\ClientRepository.cs" />
52+
<Compile Include="RepositoryFiles\DataBaseContext.cs" />
53+
<Compile Include="RepositoryFiles\ManagerRepository.cs" />
54+
<Compile Include="RepositoryFiles\OrganizationRepository.cs" />
55+
<Compile Include="RepositoryFiles\PhoneRepository.cs" />
56+
<Compile Include="RepositoryFiles\Repository.cs" />
57+
<Compile Include="RepositoryUnit.cs" />
58+
</ItemGroup>
59+
<ItemGroup>
60+
<ProjectReference Include="..\CRM.Data\CRM.Data.csproj">
61+
<Project>{e0d86e59-bee5-4d0e-8673-ef0329bcef5f}</Project>
62+
<Name>CRM.Data</Name>
63+
</ProjectReference>
64+
<ProjectReference Include="..\CRM.Model\CRM.Model.csproj">
65+
<Project>{469c6ffa-8623-4659-b102-38dd5c1f2d49}</Project>
66+
<Name>CRM.Model</Name>
67+
</ProjectReference>
68+
</ItemGroup>
69+
<ItemGroup>
70+
<None Include="App.config" />
71+
<None Include="packages.config" />
72+
</ItemGroup>
73+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
74+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
75+
Other similar extension points exist, see Microsoft.Common.targets.
76+
<Target Name="BeforeBuild">
77+
</Target>
78+
<Target Name="AfterBuild">
79+
</Target>
80+
-->
81+
</Project>

CRM.Inf/Class1.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CRM.Inf
8+
{
9+
public class Class1
10+
{
11+
}
12+
}

CRM.Inf/Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("CRM.Inf")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("CRM.Inf")]
13+
[assembly: AssemblyCopyright("Copyright © 2016")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("b804738d-7159-4ce2-9f77-b50f1f191569")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Data.Entity;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using CRM.Data.Dto;
8+
using CRM.Model.Interfaces;
9+
10+
namespace CRM.Inf.RepositoryFiles
11+
{
12+
class ClientsRepository : Repository<Client>, IClientRepository, IDisposable
13+
{
14+
public ClientsRepository(DbContext context)
15+
: base(context)
16+
{
17+
}
18+
19+
public void Dispose()
20+
{
21+
throw new NotImplementedException();
22+
}
23+
}
24+
}
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Data.Entity;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using CRM.Data.Dto;
8+
9+
namespace CRM.Inf.RepositoryFiles
10+
{
11+
public class DataBaseContext : DbContext
12+
{
13+
public DbSet<CRM.Data.Dto.PhoneNumber> Phones { get; set; }
14+
public DbSet<CRM.Data.Dto.Client> Clients { get; set; }
15+
public DbSet<CRM.Data.Dto.Manager> Managers { get; set; }
16+
public DbSet<CRM.Data.Dto.Organization> Organizations { get; set; }
17+
}
18+
}

0 commit comments

Comments
 (0)