diff --git a/ConApp/App.config b/ConApp/App.config index 7988072..e8eadf2 100644 --- a/ConApp/App.config +++ b/ConApp/App.config @@ -1,11 +1,11 @@  - +
- + - + diff --git a/DAL/App.config b/DAL/App.config new file mode 100644 index 0000000..7e1d79c --- /dev/null +++ b/DAL/App.config @@ -0,0 +1,17 @@ + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/DAL/AppDbContext.cs b/DAL/AppDbContext.cs index c40aa01..35f4488 100644 --- a/DAL/AppDbContext.cs +++ b/DAL/AppDbContext.cs @@ -31,6 +31,9 @@ namespace DAL } public DbSet People { get; set; } + public DbSet Cources { get; set; } + public DbSet Persons { get; set; } + public DbSet PersonCources { get; set; } } } diff --git a/DAL/DAL.csproj b/DAL/DAL.csproj index 5e24a4e..2d30610 100644 --- a/DAL/DAL.csproj +++ b/DAL/DAL.csproj @@ -30,10 +30,16 @@ 4 - + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + @@ -45,13 +51,23 @@ + + {C3E21315-C897-46BE-B9F7-8B6A2201C6D5} Domain + + {88F63C3D-8C2B-4C31-A2C0-51DC04D1F18B} + Interfaces + + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/Domain/Cource.cs b/Domain/Cource.cs index 41f6043..f616d39 100644 --- a/Domain/Cource.cs +++ b/Domain/Cource.cs @@ -17,6 +17,6 @@ namespace Domain public int SubjectId { get; set; } public Subject Subject { get; set; } - public virtual List Persons { get; set; } = new List(); + public virtual List Persons { get; set; } = new List(); } } diff --git a/Domain/Domain.csproj b/Domain/Domain.csproj index d07b6fd..a8c1bbe 100644 --- a/Domain/Domain.csproj +++ b/Domain/Domain.csproj @@ -30,6 +30,14 @@ 4 + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + @@ -48,6 +56,10 @@ + + + + + \ No newline at end of file diff --git a/Interfaces/Properties/AssemblyInfo.cs b/Interfaces/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..847b092 --- /dev/null +++ b/Interfaces/Properties/AssemblyInfo.cs @@ -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("Interfaces")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Interfaces")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[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("88f63c3d-8c2b-4c31-a2c0-51dc04d1f18b")] + +// 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")]