first commit
This commit is contained in:
commit
87bedd6e9c
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.vs
|
||||
/bin
|
||||
/obj
|
25
Bar_Five.sln
Normal file
25
Bar_Five.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34607.119
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bar_Five", "Bar_Five\Bar_Five.csproj", "{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {972C5BDA-1D19-4DFC-82C6-69A591EE1020}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
23
Bar_Five/App.config
Normal file
23
Bar_Five/App.config
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<connectionStrings>
|
||||
<add name="FiveBarSQLEntities" connectionString="metadata=res://*/BarBaseSQL.csdl|res://*/BarBaseSQL.ssdl|res://*/BarBaseSQL.msl;provider=System.Data.SqlClient;provider connection string="data source=CAB318-12;initial catalog=FiveBarSQL;integrated security=True;trustservercertificate=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||
</connectionStrings>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
<parameter value="mssqllocaldb" />
|
||||
</parameters>
|
||||
</defaultConnectionFactory>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
9
Bar_Five/App.xaml
Normal file
9
Bar_Five/App.xaml
Normal file
@ -0,0 +1,9 @@
|
||||
<Application x:Class="Bar_Five.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Bar_Five"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
17
Bar_Five/App.xaml.cs
Normal file
17
Bar_Five/App.xaml.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
28
Bar_Five/Assort_tovar.cs
Normal file
28
Bar_Five/Assort_tovar.cs
Normal file
@ -0,0 +1,28 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Assort_tovar
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Nullable<decimal> Price { get; set; }
|
||||
public string Yslov_postav { get; set; }
|
||||
public string Yslov_pay { get; set; }
|
||||
public Nullable<int> Sklad { get; set; }
|
||||
public Nullable<int> Nalicie { get; set; }
|
||||
|
||||
public virtual Price_list Price_list { get; set; }
|
||||
public virtual Spravka Spravka { get; set; }
|
||||
}
|
||||
}
|
39
Bar_Five/BarBaseSQL.Context.cs
Normal file
39
Bar_Five/BarBaseSQL.Context.cs
Normal file
@ -0,0 +1,39 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
|
||||
public partial class FiveBarSQLEntities : DbContext
|
||||
{
|
||||
public FiveBarSQLEntities()
|
||||
: base("name=FiveBarSQLEntities")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
throw new UnintentionalCodeFirstException();
|
||||
}
|
||||
|
||||
public virtual DbSet<Assort_tovar> Assort_tovar { get; set; }
|
||||
public virtual DbSet<Postovshiki> Postovshiki { get; set; }
|
||||
public virtual DbSet<Price_list> Price_list { get; set; }
|
||||
public virtual DbSet<Recept> Recept { get; set; }
|
||||
public virtual DbSet<Rekvezits> Rekvezits { get; set; }
|
||||
public virtual DbSet<Sotrudnik> Sotrudnik { get; set; }
|
||||
public virtual DbSet<Spravka> Spravka { get; set; }
|
||||
public virtual DbSet<Svedinia> Svedinia { get; set; }
|
||||
public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
|
||||
public virtual DbSet<Zakuski> Zakuski { get; set; }
|
||||
}
|
||||
}
|
636
Bar_Five/BarBaseSQL.Context.tt
Normal file
636
Bar_Five/BarBaseSQL.Context.tt
Normal file
@ -0,0 +1,636 @@
|
||||
<#@ template language="C#" debug="false" hostspecific="true"#>
|
||||
<#@ include file="EF6.Utility.CS.ttinclude"#><#@
|
||||
output extension=".cs"#><#
|
||||
|
||||
const string inputFile = @"BarBaseSQL.edmx";
|
||||
var textTransform = DynamicTextTransformation.Create(this);
|
||||
var code = new CodeGenerationTools(this);
|
||||
var ef = new MetadataTools(this);
|
||||
var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
|
||||
var loader = new EdmMetadataLoader(textTransform.Host, textTransform.Errors);
|
||||
var itemCollection = loader.CreateEdmItemCollection(inputFile);
|
||||
var modelNamespace = loader.GetModelNamespace(inputFile);
|
||||
var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
|
||||
|
||||
var container = itemCollection.OfType<EntityContainer>().FirstOrDefault();
|
||||
if (container == null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
#>
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
|
||||
//
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
<#
|
||||
|
||||
var codeNamespace = code.VsNamespaceSuggestion();
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
#>
|
||||
namespace <#=code.EscapeNamespace(codeNamespace)#>
|
||||
{
|
||||
<#
|
||||
PushIndent(" ");
|
||||
}
|
||||
|
||||
#>
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
<#
|
||||
if (container.FunctionImports.Any())
|
||||
{
|
||||
#>
|
||||
using System.Data.Entity.Core.Objects;
|
||||
using System.Linq;
|
||||
<#
|
||||
}
|
||||
#>
|
||||
|
||||
<#=Accessibility.ForType(container)#> partial class <#=code.Escape(container)#> : DbContext
|
||||
{
|
||||
public <#=code.Escape(container)#>()
|
||||
: base("name=<#=container.Name#>")
|
||||
{
|
||||
<#
|
||||
if (!loader.IsLazyLoadingEnabled(container))
|
||||
{
|
||||
#>
|
||||
this.Configuration.LazyLoadingEnabled = false;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
|
||||
{
|
||||
// Note: the DbSet members are defined below such that the getter and
|
||||
// setter always have the same accessibility as the DbSet definition
|
||||
if (Accessibility.ForReadOnlyProperty(entitySet) != "public")
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.DbSetInitializer(entitySet)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
throw new UnintentionalCodeFirstException();
|
||||
}
|
||||
|
||||
<#
|
||||
foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.DbSet(entitySet)#>
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var edmFunction in container.FunctionImports)
|
||||
{
|
||||
WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: false);
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
PopIndent();
|
||||
#>
|
||||
}
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#+
|
||||
|
||||
private void WriteFunctionImport(TypeMapper typeMapper, CodeStringGenerator codeStringGenerator, EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
if (typeMapper.IsComposable(edmFunction))
|
||||
{
|
||||
#>
|
||||
|
||||
[DbFunction("<#=edmFunction.NamespaceName#>", "<#=edmFunction.Name#>")]
|
||||
<#=codeStringGenerator.ComposableFunctionMethod(edmFunction, modelNamespace)#>
|
||||
{
|
||||
<#+
|
||||
codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
|
||||
#>
|
||||
<#=codeStringGenerator.ComposableCreateQuery(edmFunction, modelNamespace)#>
|
||||
}
|
||||
<#+
|
||||
}
|
||||
else
|
||||
{
|
||||
#>
|
||||
|
||||
<#=codeStringGenerator.FunctionMethod(edmFunction, modelNamespace, includeMergeOption)#>
|
||||
{
|
||||
<#+
|
||||
codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
|
||||
#>
|
||||
<#=codeStringGenerator.ExecuteFunction(edmFunction, modelNamespace, includeMergeOption)#>
|
||||
}
|
||||
<#+
|
||||
if (typeMapper.GenerateMergeOptionFunction(edmFunction, includeMergeOption))
|
||||
{
|
||||
WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteFunctionParameter(string name, string isNotNull, string notNullInit, string nullInit)
|
||||
{
|
||||
#>
|
||||
var <#=name#> = <#=isNotNull#> ?
|
||||
<#=notNullInit#> :
|
||||
<#=nullInit#>;
|
||||
|
||||
<#+
|
||||
}
|
||||
|
||||
public const string TemplateId = "CSharp_DbContext_Context_EF6";
|
||||
|
||||
public class CodeStringGenerator
|
||||
{
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly TypeMapper _typeMapper;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(typeMapper, "typeMapper");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
|
||||
_code = code;
|
||||
_typeMapper = typeMapper;
|
||||
_ef = ef;
|
||||
}
|
||||
|
||||
public string Property(EdmProperty edmProperty)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
Accessibility.ForProperty(edmProperty),
|
||||
_typeMapper.GetTypeName(edmProperty.TypeUsage),
|
||||
_code.Escape(edmProperty),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
|
||||
}
|
||||
|
||||
public string NavigationProperty(NavigationProperty navProp)
|
||||
{
|
||||
var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
|
||||
navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
|
||||
_code.Escape(navProp),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(navProp)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(navProp)));
|
||||
}
|
||||
|
||||
public string AccessibilityAndVirtual(string accessibility)
|
||||
{
|
||||
return accessibility + (accessibility != "private" ? " virtual" : "");
|
||||
}
|
||||
|
||||
public string EntityClassOpening(EntityType entity)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1}partial class {2}{3}",
|
||||
Accessibility.ForType(entity),
|
||||
_code.SpaceAfter(_code.AbstractOption(entity)),
|
||||
_code.Escape(entity),
|
||||
_code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
|
||||
}
|
||||
|
||||
public string EnumOpening(SimpleType enumType)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} enum {1} : {2}",
|
||||
Accessibility.ForType(enumType),
|
||||
_code.Escape(enumType),
|
||||
_code.Escape(_typeMapper.UnderlyingClrType(enumType)));
|
||||
}
|
||||
|
||||
public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
|
||||
{
|
||||
var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
|
||||
{
|
||||
var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
|
||||
var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
|
||||
var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
|
||||
writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
|
||||
}
|
||||
}
|
||||
|
||||
public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} IQueryable<{1}> {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
_code.Escape(edmFunction),
|
||||
string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
|
||||
}
|
||||
|
||||
public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
edmFunction.NamespaceName,
|
||||
edmFunction.Name,
|
||||
string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
|
||||
_code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
|
||||
}
|
||||
|
||||
public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
|
||||
if (includeMergeOption)
|
||||
{
|
||||
paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
_code.Escape(edmFunction),
|
||||
paramList);
|
||||
}
|
||||
|
||||
public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
|
||||
if (includeMergeOption)
|
||||
{
|
||||
callParams = ", mergeOption" + callParams;
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
|
||||
returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
edmFunction.Name,
|
||||
callParams);
|
||||
}
|
||||
|
||||
public string DbSet(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} virtual DbSet<{1}> {2} {{ get; set; }}",
|
||||
Accessibility.ForReadOnlyProperty(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType),
|
||||
_code.Escape(entitySet));
|
||||
}
|
||||
|
||||
public string DbSetInitializer(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} = Set<{1}>();",
|
||||
_code.Escape(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType));
|
||||
}
|
||||
|
||||
public string UsingDirectives(bool inHeader, bool includeCollections = true)
|
||||
{
|
||||
return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
|
||||
? string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0}using System;{1}" +
|
||||
"{2}",
|
||||
inHeader ? Environment.NewLine : "",
|
||||
includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
|
||||
inHeader ? "" : Environment.NewLine)
|
||||
: "";
|
||||
}
|
||||
}
|
||||
|
||||
public class TypeMapper
|
||||
{
|
||||
private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
|
||||
|
||||
private readonly System.Collections.IList _errors;
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public static string FixNamespaces(string typeName)
|
||||
{
|
||||
return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
|
||||
}
|
||||
|
||||
public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
ArgumentNotNull(errors, "errors");
|
||||
|
||||
_code = code;
|
||||
_ef = ef;
|
||||
_errors = errors;
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, string modelNamespace)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
|
||||
{
|
||||
if (edmType == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var collectionType = edmType as CollectionType;
|
||||
if (collectionType != null)
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
|
||||
}
|
||||
|
||||
var typeName = _code.Escape(edmType.MetadataProperties
|
||||
.Where(p => p.Name == ExternalTypeNameAttributeName)
|
||||
.Select(p => (string)p.Value)
|
||||
.FirstOrDefault())
|
||||
?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
|
||||
_code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
|
||||
_code.Escape(edmType));
|
||||
|
||||
if (edmType is StructuralType)
|
||||
{
|
||||
return typeName;
|
||||
}
|
||||
|
||||
if (edmType is SimpleType)
|
||||
{
|
||||
var clrType = UnderlyingClrType(edmType);
|
||||
if (!IsEnumType(edmType))
|
||||
{
|
||||
typeName = _code.Escape(clrType);
|
||||
}
|
||||
|
||||
typeName = FixNamespaces(typeName);
|
||||
|
||||
return clrType.IsValueType && isNullable == true ?
|
||||
String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
|
||||
typeName;
|
||||
}
|
||||
|
||||
throw new ArgumentException("edmType");
|
||||
}
|
||||
|
||||
public Type UnderlyingClrType(EdmType edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
var primitiveType = edmType as PrimitiveType;
|
||||
if (primitiveType != null)
|
||||
{
|
||||
return primitiveType.ClrEquivalentType;
|
||||
}
|
||||
|
||||
if (IsEnumType(edmType))
|
||||
{
|
||||
return GetEnumUnderlyingType(edmType).ClrEquivalentType;
|
||||
}
|
||||
|
||||
return typeof(object);
|
||||
}
|
||||
|
||||
public object GetEnumMemberValue(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var valueProperty = enumMember.GetType().GetProperty("Value");
|
||||
return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public string GetEnumMemberName(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var nameProperty = enumMember.GetType().GetProperty("Name");
|
||||
return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var membersProperty = enumType.GetType().GetProperty("Members");
|
||||
return membersProperty != null
|
||||
? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
|
||||
: Enumerable.Empty<MetadataItem>();
|
||||
}
|
||||
|
||||
public bool EnumIsFlags(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
|
||||
return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public bool IsEnumType(GlobalItem edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
return edmType.GetType().Name == "EnumType";
|
||||
}
|
||||
|
||||
public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public string CreateLiteral(object value)
|
||||
{
|
||||
if (value == null || value.GetType() != typeof(TimeSpan))
|
||||
{
|
||||
return _code.CreateLiteral(value);
|
||||
}
|
||||
|
||||
return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
|
||||
}
|
||||
|
||||
public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
|
||||
{
|
||||
ArgumentNotNull(types, "types");
|
||||
ArgumentNotNull(sourceFile, "sourceFile");
|
||||
|
||||
var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
|
||||
if (types.Any(item => !hash.Add(item)))
|
||||
{
|
||||
_errors.Add(
|
||||
new CompilerError(sourceFile, -1, -1, "6023",
|
||||
String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return GetItemsToGenerate<SimpleType>(itemCollection)
|
||||
.Where(e => IsEnumType(e));
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
|
||||
{
|
||||
return itemCollection
|
||||
.OfType<T>()
|
||||
.Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
|
||||
.OrderBy(i => i.Name);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return itemCollection
|
||||
.Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
|
||||
.Select(g => GetGlobalItemName(g));
|
||||
}
|
||||
|
||||
public string GetGlobalItemName(GlobalItem item)
|
||||
{
|
||||
if (item is EdmType)
|
||||
{
|
||||
return ((EdmType)item).Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ((EntityContainer)item).Name;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
|
||||
}
|
||||
|
||||
public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
|
||||
return returnParamsProperty == null
|
||||
? edmFunction.ReturnParameter
|
||||
: ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
|
||||
}
|
||||
|
||||
public bool IsComposable(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
|
||||
return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
|
||||
}
|
||||
|
||||
public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
|
||||
{
|
||||
return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
}
|
||||
|
||||
public TypeUsage GetReturnType(EdmFunction edmFunction)
|
||||
{
|
||||
var returnParam = GetReturnParameter(edmFunction);
|
||||
return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
|
||||
}
|
||||
|
||||
public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
|
||||
{
|
||||
var returnType = GetReturnType(edmFunction);
|
||||
return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ArgumentNotNull<T>(T arg, string name) where T : class
|
||||
{
|
||||
if (arg == null)
|
||||
{
|
||||
throw new ArgumentNullException(name);
|
||||
}
|
||||
}
|
||||
#>
|
10
Bar_Five/BarBaseSQL.Designer.cs
generated
Normal file
10
Bar_Five/BarBaseSQL.Designer.cs
generated
Normal file
@ -0,0 +1,10 @@
|
||||
// Создание кода T4 для модели "D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\BarBaseSQL.edmx" включено.
|
||||
// Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
|
||||
// на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
|
||||
// открыта в конструкторе.
|
||||
|
||||
// Если не сформированы контекст и классы сущности, возможная причина в том, что вы создали пустую модель, но
|
||||
// еще не выбрали версию Entity Framework для использования. Чтобы сформировать класс контекста и классы сущностей
|
||||
// для своей модели, откройте модель в конструкторе, щелкните правой кнопкой область конструктора и
|
||||
// выберите "Обновить модель из базы данных", "Сформировать базу данных из модели" или "Добавить элемент формирования
|
||||
// кода...".
|
9
Bar_Five/BarBaseSQL.cs
Normal file
9
Bar_Five/BarBaseSQL.cs
Normal file
@ -0,0 +1,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
558
Bar_Five/BarBaseSQL.edmx
Normal file
558
Bar_Five/BarBaseSQL.edmx
Normal file
@ -0,0 +1,558 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- EF Runtime content -->
|
||||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="Хранилище FiveBarSQLModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<EntityType Name="Assort_tovar">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Yslov_postav" Type="nvarchar(max)" />
|
||||
<Property Name="Yslov_pay" Type="nvarchar(max)" />
|
||||
<Property Name="Sklad" Type="int" />
|
||||
<Property Name="Nalicie" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Postovshiki">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Posht_index" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Phone" Type="nvarchar(max)" />
|
||||
<Property Name="Faks" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="E_mail" Type="nvarchar(max)" />
|
||||
<Property Name="Banks_recvethits" Type="int" />
|
||||
<Property Name="Assort_tovar" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Price_list">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Tovar" Type="nvarchar(max)" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
|
||||
</EntityType>
|
||||
<EntityType Name="Recept">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Ed_mer" Type="nvarchar" MaxLength="50" />
|
||||
</EntityType>
|
||||
<EntityType Name="Rekvezits">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Bank" Type="nvarchar(max)" />
|
||||
<Property Name="Gorod" Type="nvarchar(max)" />
|
||||
<Property Name="Inn" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Pay_Shet" Type="nvarchar(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="Sotrudnik">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="FIO" Type="nvarchar(max)" />
|
||||
<Property Name="Adres" Type="nvarchar(max)" />
|
||||
<Property Name="Data_birday" Type="date" />
|
||||
<Property Name="Status" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Pay_chek" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Chek_Status" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Spravka">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_tovar" Type="nvarchar(max)" />
|
||||
<Property Name="sklad" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
</EntityType>
|
||||
<EntityType Name="Svedinia">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Status" Type="nvarchar(max)" />
|
||||
<Property Name="Prichina" Type="nvarchar(max)" />
|
||||
<Property Name="Number" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Data_prikaz" Type="date" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
|
||||
<Property Name="principal_id" Type="int" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="version" Type="int" />
|
||||
<Property Name="definition" Type="varbinary(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="Zakuski">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Cocteil" Type="nvarchar(max)" />
|
||||
<Property Name="Crep" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Razmer_Part" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Recept" Type="int" />
|
||||
</EntityType>
|
||||
<Association Name="FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" Type="Self.Price_list" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Price_list">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Sklad" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" Type="Self.Spravka" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Spravka">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Nalicie" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" Type="Self.Rekvezits" Multiplicity="0..1" />
|
||||
<End Role="Postovshiki" Type="Self.Postovshiki" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Rekvezits">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Postovshiki">
|
||||
<PropertyRef Name="Banks_recvethits" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" Type="Self.Svedinia" Multiplicity="0..1" />
|
||||
<End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Svedinia">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Sotrudnik">
|
||||
<PropertyRef Name="Chek_Status" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Zakuski_Recept">
|
||||
<End Role="Recept" Type="Self.Recept" Multiplicity="0..1" />
|
||||
<End Role="Zakuski" Type="Self.Zakuski" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Recept">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Zakuski">
|
||||
<PropertyRef Name="Recept" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityContainer Name="Хранилище FiveBarSQLModelContainer">
|
||||
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Price_list" EntityType="Self.Price_list" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Recept" EntityType="Self.Recept" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Spravka" EntityType="Self.Spravka" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" Schema="dbo" store:Type="Tables" />
|
||||
<AssociationSet Name="FK_Assort_tovar_Price_list" Association="Self.FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" EntitySet="Price_list" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Assort_tovar_Spravka" Association="Self.FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" EntitySet="Spravka" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Postovshiki_Rekvezits" Association="Self.FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" EntitySet="Rekvezits" />
|
||||
<End Role="Postovshiki" EntitySet="Postovshiki" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" EntitySet="Svedinia" />
|
||||
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
|
||||
<End Role="Recept" EntitySet="Recept" />
|
||||
<End Role="Zakuski" EntitySet="Zakuski" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
</Schema>
|
||||
</edmx:StorageModels>
|
||||
<!-- CSDL content -->
|
||||
<edmx:ConceptualModels>
|
||||
<Schema Namespace="FiveBarSQLModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
||||
<EntityType Name="Assort_tovar">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Yslov_postav" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Yslov_pay" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Sklad" Type="Int32" />
|
||||
<Property Name="Nalicie" Type="Int32" />
|
||||
<NavigationProperty Name="Price_list" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Assort_tovar" ToRole="Price_list" />
|
||||
<NavigationProperty Name="Spravka" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Assort_tovar" ToRole="Spravka" />
|
||||
</EntityType>
|
||||
<EntityType Name="Postovshiki">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Posht_index" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Phone" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Faks" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="E_mail" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Banks_recvethits" Type="Int32" />
|
||||
<Property Name="Assort_tovar" Type="Int32" />
|
||||
<NavigationProperty Name="Rekvezits" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Postovshiki" ToRole="Rekvezits" />
|
||||
</EntityType>
|
||||
<EntityType Name="Price_list">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
||||
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Price_list" ToRole="Assort_tovar" />
|
||||
</EntityType>
|
||||
<EntityType Name="Recept">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Ed_mer" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<NavigationProperty Name="Zakuski" Relationship="Self.FK_Zakuski_Recept" FromRole="Recept" ToRole="Zakuski" />
|
||||
</EntityType>
|
||||
<EntityType Name="Rekvezits">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Bank" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Gorod" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Inn" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Pay_Shet" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<NavigationProperty Name="Postovshiki" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Rekvezits" ToRole="Postovshiki" />
|
||||
</EntityType>
|
||||
<EntityType Name="Sotrudnik">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="FIO" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Adres" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Data_birday" Type="DateTime" Precision="0" />
|
||||
<Property Name="Status" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Pay_chek" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Chek_Status" Type="Int32" />
|
||||
<NavigationProperty Name="Svedinia" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Sotrudnik" ToRole="Svedinia" />
|
||||
</EntityType>
|
||||
<EntityType Name="Spravka">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="sklad" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Spravka" ToRole="Assort_tovar" />
|
||||
</EntityType>
|
||||
<EntityType Name="Svedinia">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Status" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Prichina" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Number" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Data_prikaz" Type="DateTime" Precision="0" />
|
||||
<NavigationProperty Name="Sotrudnik" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Svedinia" ToRole="Sotrudnik" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="principal_id" Type="Int32" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="version" Type="Int32" />
|
||||
<Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Zakuski">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Cocteil" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Crep" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Razmer_Part" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Recept" Type="Int32" />
|
||||
<NavigationProperty Name="Recept1" Relationship="Self.FK_Zakuski_Recept" FromRole="Zakuski" ToRole="Recept" />
|
||||
</EntityType>
|
||||
<Association Name="FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" Type="Self.Price_list" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Price_list">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Sklad" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" Type="Self.Spravka" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Spravka">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Nalicie" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" Type="Self.Rekvezits" Multiplicity="0..1" />
|
||||
<End Role="Postovshiki" Type="Self.Postovshiki" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Rekvezits">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Postovshiki">
|
||||
<PropertyRef Name="Banks_recvethits" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Zakuski_Recept">
|
||||
<End Role="Recept" Type="Self.Recept" Multiplicity="0..1" />
|
||||
<End Role="Zakuski" Type="Self.Zakuski" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Recept">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Zakuski">
|
||||
<PropertyRef Name="Recept" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" Type="Self.Svedinia" Multiplicity="0..1" />
|
||||
<End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Svedinia">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Sotrudnik">
|
||||
<PropertyRef Name="Chek_Status" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityContainer Name="FiveBarSQLEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" />
|
||||
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" />
|
||||
<EntitySet Name="Price_list" EntityType="Self.Price_list" />
|
||||
<EntitySet Name="Recept" EntityType="Self.Recept" />
|
||||
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" />
|
||||
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" />
|
||||
<EntitySet Name="Spravka" EntityType="Self.Spravka" />
|
||||
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
||||
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" />
|
||||
<AssociationSet Name="FK_Assort_tovar_Price_list" Association="Self.FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" EntitySet="Price_list" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Assort_tovar_Spravka" Association="Self.FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" EntitySet="Spravka" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Postovshiki_Rekvezits" Association="Self.FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" EntitySet="Rekvezits" />
|
||||
<End Role="Postovshiki" EntitySet="Postovshiki" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
|
||||
<End Role="Recept" EntitySet="Recept" />
|
||||
<End Role="Zakuski" EntitySet="Zakuski" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" EntitySet="Svedinia" />
|
||||
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
<edmx:Mappings>
|
||||
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
||||
<EntityContainerMapping StorageEntityContainer="Хранилище FiveBarSQLModelContainer" CdmEntityContainer="FiveBarSQLEntities">
|
||||
<EntitySetMapping Name="Assort_tovar">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Assort_tovar">
|
||||
<MappingFragment StoreEntitySet="Assort_tovar">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Price" ColumnName="Price" />
|
||||
<ScalarProperty Name="Yslov_postav" ColumnName="Yslov_postav" />
|
||||
<ScalarProperty Name="Yslov_pay" ColumnName="Yslov_pay" />
|
||||
<ScalarProperty Name="Sklad" ColumnName="Sklad" />
|
||||
<ScalarProperty Name="Nalicie" ColumnName="Nalicie" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Postovshiki">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Postovshiki">
|
||||
<MappingFragment StoreEntitySet="Postovshiki">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Posht_index" ColumnName="Posht_index" />
|
||||
<ScalarProperty Name="Phone" ColumnName="Phone" />
|
||||
<ScalarProperty Name="Faks" ColumnName="Faks" />
|
||||
<ScalarProperty Name="E_mail" ColumnName="E_mail" />
|
||||
<ScalarProperty Name="Banks_recvethits" ColumnName="Banks_recvethits" />
|
||||
<ScalarProperty Name="Assort_tovar" ColumnName="Assort_tovar" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Price_list">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Price_list">
|
||||
<MappingFragment StoreEntitySet="Price_list">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Tovar" ColumnName="Name_Tovar" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
<ScalarProperty Name="Price" ColumnName="Price" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Recept">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Recept">
|
||||
<MappingFragment StoreEntitySet="Recept">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
<ScalarProperty Name="Ed_mer" ColumnName="Ed_mer" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Rekvezits">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Rekvezits">
|
||||
<MappingFragment StoreEntitySet="Rekvezits">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Bank" ColumnName="Name_Bank" />
|
||||
<ScalarProperty Name="Gorod" ColumnName="Gorod" />
|
||||
<ScalarProperty Name="Inn" ColumnName="Inn" />
|
||||
<ScalarProperty Name="Pay_Shet" ColumnName="Pay_Shet" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Sotrudnik">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Sotrudnik">
|
||||
<MappingFragment StoreEntitySet="Sotrudnik">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="FIO" ColumnName="FIO" />
|
||||
<ScalarProperty Name="Adres" ColumnName="Adres" />
|
||||
<ScalarProperty Name="Data_birday" ColumnName="Data_birday" />
|
||||
<ScalarProperty Name="Status" ColumnName="Status" />
|
||||
<ScalarProperty Name="Pay_chek" ColumnName="Pay_chek" />
|
||||
<ScalarProperty Name="Chek_Status" ColumnName="Chek_Status" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Spravka">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Spravka">
|
||||
<MappingFragment StoreEntitySet="Spravka">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_tovar" ColumnName="Name_tovar" />
|
||||
<ScalarProperty Name="sklad" ColumnName="sklad" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Svedinia">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Svedinia">
|
||||
<MappingFragment StoreEntitySet="Svedinia">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Status" ColumnName="Status" />
|
||||
<ScalarProperty Name="Prichina" ColumnName="Prichina" />
|
||||
<ScalarProperty Name="Number" ColumnName="Number" />
|
||||
<ScalarProperty Name="Data_prikaz" ColumnName="Data_prikaz" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="sysdiagrams">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.sysdiagrams">
|
||||
<MappingFragment StoreEntitySet="sysdiagrams">
|
||||
<ScalarProperty Name="name" ColumnName="name" />
|
||||
<ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
||||
<ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
||||
<ScalarProperty Name="version" ColumnName="version" />
|
||||
<ScalarProperty Name="definition" ColumnName="definition" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Zakuski">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Zakuski">
|
||||
<MappingFragment StoreEntitySet="Zakuski">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Cocteil" ColumnName="Name_Cocteil" />
|
||||
<ScalarProperty Name="Crep" ColumnName="Crep" />
|
||||
<ScalarProperty Name="Razmer_Part" ColumnName="Razmer_Part" />
|
||||
<ScalarProperty Name="Recept" ColumnName="Recept" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
</edmx:Runtime>
|
||||
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
||||
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<Connection>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Connection>
|
||||
<Options>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
||||
<DesignerProperty Name="EnablePluralization" Value="false" />
|
||||
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
||||
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
||||
<DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Options>
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<Diagrams></Diagrams>
|
||||
</Designer>
|
||||
</edmx:Edmx>
|
26
Bar_Five/BarBaseSQL.edmx.diagram
Normal file
26
Bar_Five/BarBaseSQL.edmx.diagram
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
||||
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="971d65405b6848389b7131d4b901b595" Name="Diagram1">
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Assort_tovar" Width="1.5" PointX="3" PointY="1" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Postovshiki" Width="1.5" PointX="10" PointY="5" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Price_list" Width="1.5" PointX="0.75" PointY="1.375" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Recept" Width="1.5" PointX="2.75" PointY="5" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Rekvezits" Width="1.5" PointX="7.75" PointY="5.25" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Sotrudnik" Width="1.5" PointX="8" PointY="1" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Spravka" Width="1.5" PointX="0.75" PointY="5.375" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Svedinia" Width="1.5" PointX="5.75" PointY="1.125" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.sysdiagrams" Width="1.5" PointX="10.125" PointY="2.625" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="FiveBarSQLModel.Zakuski" Width="1.5" PointX="5" PointY="4.875" IsExpanded="true" />
|
||||
<AssociationConnector Association="FiveBarSQLModel.FK_Assort_tovar_Price_list" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="FiveBarSQLModel.FK_Assort_tovar_Spravka" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="FiveBarSQLModel.FK_Postovshiki_Rekvezits" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="FiveBarSQLModel.FK_Zakuski_Recept" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="FiveBarSQLModel.FK_Sotrudnik_Svedinia" ManuallyRouted="false" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
</edmx:Edmx>
|
733
Bar_Five/BarBaseSQL.tt
Normal file
733
Bar_Five/BarBaseSQL.tt
Normal file
@ -0,0 +1,733 @@
|
||||
<#@ template language="C#" debug="false" hostspecific="true"#>
|
||||
<#@ include file="EF6.Utility.CS.ttinclude"#><#@
|
||||
output extension=".cs"#><#
|
||||
|
||||
const string inputFile = @"BarBaseSQL.edmx";
|
||||
var textTransform = DynamicTextTransformation.Create(this);
|
||||
var code = new CodeGenerationTools(this);
|
||||
var ef = new MetadataTools(this);
|
||||
var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
|
||||
var fileManager = EntityFrameworkTemplateFileManager.Create(this);
|
||||
var itemCollection = new EdmMetadataLoader(textTransform.Host, textTransform.Errors).CreateEdmItemCollection(inputFile);
|
||||
var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
|
||||
|
||||
if (!typeMapper.VerifyCaseInsensitiveTypeUniqueness(typeMapper.GetAllGlobalItems(itemCollection), inputFile))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
WriteHeader(codeStringGenerator, fileManager);
|
||||
|
||||
foreach (var entity in typeMapper.GetItemsToGenerate<EntityType>(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(entity.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false)#>
|
||||
<#=codeStringGenerator.EntityClassOpening(entity)#>
|
||||
{
|
||||
<#
|
||||
var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(entity);
|
||||
var collectionNavigationProperties = typeMapper.GetCollectionNavigationProperties(entity);
|
||||
var complexProperties = typeMapper.GetComplexProperties(entity);
|
||||
|
||||
if (propertiesWithDefaultValues.Any() || collectionNavigationProperties.Any() || complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public <#=code.Escape(entity)#>()
|
||||
{
|
||||
<#
|
||||
foreach (var edmProperty in propertiesWithDefaultValues)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var navigationProperty in collectionNavigationProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>();
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
var simpleProperties = typeMapper.GetSimpleProperties(entity);
|
||||
if (simpleProperties.Any())
|
||||
{
|
||||
foreach (var edmProperty in simpleProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
if (complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach(var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(complexProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
var navigationProperties = typeMapper.GetNavigationProperties(entity);
|
||||
if (navigationProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach (var navigationProperty in navigationProperties)
|
||||
{
|
||||
if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
|
||||
{
|
||||
#>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#=codeStringGenerator.NavigationProperty(navigationProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
foreach (var complex in typeMapper.GetItemsToGenerate<ComplexType>(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(complex.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
|
||||
<#=Accessibility.ForType(complex)#> partial class <#=code.Escape(complex)#>
|
||||
{
|
||||
<#
|
||||
var complexProperties = typeMapper.GetComplexProperties(complex);
|
||||
var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(complex);
|
||||
|
||||
if (propertiesWithDefaultValues.Any() || complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
public <#=code.Escape(complex)#>()
|
||||
{
|
||||
<#
|
||||
foreach (var edmProperty in propertiesWithDefaultValues)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
var simpleProperties = typeMapper.GetSimpleProperties(complex);
|
||||
if (simpleProperties.Any())
|
||||
{
|
||||
foreach(var edmProperty in simpleProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
if (complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach(var edmProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
foreach (var enumType in typeMapper.GetEnumItemsToGenerate(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(enumType.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
|
||||
<#
|
||||
if (typeMapper.EnumIsFlags(enumType))
|
||||
{
|
||||
#>
|
||||
[Flags]
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#=codeStringGenerator.EnumOpening(enumType)#>
|
||||
{
|
||||
<#
|
||||
var foundOne = false;
|
||||
|
||||
foreach (MetadataItem member in typeMapper.GetEnumMembers(enumType))
|
||||
{
|
||||
foundOne = true;
|
||||
#>
|
||||
<#=code.Escape(typeMapper.GetEnumMemberName(member))#> = <#=typeMapper.GetEnumMemberValue(member)#>,
|
||||
<#
|
||||
}
|
||||
|
||||
if (foundOne)
|
||||
{
|
||||
this.GenerationEnvironment.Remove(this.GenerationEnvironment.Length - 3, 1);
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
fileManager.Process();
|
||||
|
||||
#>
|
||||
<#+
|
||||
|
||||
public void WriteHeader(CodeStringGenerator codeStringGenerator, EntityFrameworkTemplateFileManager fileManager)
|
||||
{
|
||||
fileManager.StartHeader();
|
||||
#>
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
|
||||
//
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: true)#>
|
||||
<#+
|
||||
fileManager.EndBlock();
|
||||
}
|
||||
|
||||
public void BeginNamespace(CodeGenerationTools code)
|
||||
{
|
||||
var codeNamespace = code.VsNamespaceSuggestion();
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
#>
|
||||
namespace <#=code.EscapeNamespace(codeNamespace)#>
|
||||
{
|
||||
<#+
|
||||
PushIndent(" ");
|
||||
}
|
||||
}
|
||||
|
||||
public void EndNamespace(CodeGenerationTools code)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(code.VsNamespaceSuggestion()))
|
||||
{
|
||||
PopIndent();
|
||||
#>
|
||||
}
|
||||
<#+
|
||||
}
|
||||
}
|
||||
|
||||
public const string TemplateId = "CSharp_DbContext_Types_EF6";
|
||||
|
||||
public class CodeStringGenerator
|
||||
{
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly TypeMapper _typeMapper;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(typeMapper, "typeMapper");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
|
||||
_code = code;
|
||||
_typeMapper = typeMapper;
|
||||
_ef = ef;
|
||||
}
|
||||
|
||||
public string Property(EdmProperty edmProperty)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
Accessibility.ForProperty(edmProperty),
|
||||
_typeMapper.GetTypeName(edmProperty.TypeUsage),
|
||||
_code.Escape(edmProperty),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
|
||||
}
|
||||
|
||||
public string NavigationProperty(NavigationProperty navProp)
|
||||
{
|
||||
var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
|
||||
navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
|
||||
_code.Escape(navProp),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(navProp)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(navProp)));
|
||||
}
|
||||
|
||||
public string AccessibilityAndVirtual(string accessibility)
|
||||
{
|
||||
return accessibility + (accessibility != "private" ? " virtual" : "");
|
||||
}
|
||||
|
||||
public string EntityClassOpening(EntityType entity)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1}partial class {2}{3}",
|
||||
Accessibility.ForType(entity),
|
||||
_code.SpaceAfter(_code.AbstractOption(entity)),
|
||||
_code.Escape(entity),
|
||||
_code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
|
||||
}
|
||||
|
||||
public string EnumOpening(SimpleType enumType)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} enum {1} : {2}",
|
||||
Accessibility.ForType(enumType),
|
||||
_code.Escape(enumType),
|
||||
_code.Escape(_typeMapper.UnderlyingClrType(enumType)));
|
||||
}
|
||||
|
||||
public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
|
||||
{
|
||||
var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
|
||||
{
|
||||
var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
|
||||
var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
|
||||
var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
|
||||
writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
|
||||
}
|
||||
}
|
||||
|
||||
public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} IQueryable<{1}> {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
_code.Escape(edmFunction),
|
||||
string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
|
||||
}
|
||||
|
||||
public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
edmFunction.NamespaceName,
|
||||
edmFunction.Name,
|
||||
string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
|
||||
_code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
|
||||
}
|
||||
|
||||
public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
|
||||
if (includeMergeOption)
|
||||
{
|
||||
paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
_code.Escape(edmFunction),
|
||||
paramList);
|
||||
}
|
||||
|
||||
public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
|
||||
if (includeMergeOption)
|
||||
{
|
||||
callParams = ", mergeOption" + callParams;
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
|
||||
returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
edmFunction.Name,
|
||||
callParams);
|
||||
}
|
||||
|
||||
public string DbSet(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} virtual DbSet<{1}> {2} {{ get; set; }}",
|
||||
Accessibility.ForReadOnlyProperty(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType),
|
||||
_code.Escape(entitySet));
|
||||
}
|
||||
|
||||
public string UsingDirectives(bool inHeader, bool includeCollections = true)
|
||||
{
|
||||
return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
|
||||
? string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0}using System;{1}" +
|
||||
"{2}",
|
||||
inHeader ? Environment.NewLine : "",
|
||||
includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
|
||||
inHeader ? "" : Environment.NewLine)
|
||||
: "";
|
||||
}
|
||||
}
|
||||
|
||||
public class TypeMapper
|
||||
{
|
||||
private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
|
||||
|
||||
private readonly System.Collections.IList _errors;
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
ArgumentNotNull(errors, "errors");
|
||||
|
||||
_code = code;
|
||||
_ef = ef;
|
||||
_errors = errors;
|
||||
}
|
||||
|
||||
public static string FixNamespaces(string typeName)
|
||||
{
|
||||
return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, string modelNamespace)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
|
||||
{
|
||||
if (edmType == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var collectionType = edmType as CollectionType;
|
||||
if (collectionType != null)
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
|
||||
}
|
||||
|
||||
var typeName = _code.Escape(edmType.MetadataProperties
|
||||
.Where(p => p.Name == ExternalTypeNameAttributeName)
|
||||
.Select(p => (string)p.Value)
|
||||
.FirstOrDefault())
|
||||
?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
|
||||
_code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
|
||||
_code.Escape(edmType));
|
||||
|
||||
if (edmType is StructuralType)
|
||||
{
|
||||
return typeName;
|
||||
}
|
||||
|
||||
if (edmType is SimpleType)
|
||||
{
|
||||
var clrType = UnderlyingClrType(edmType);
|
||||
if (!IsEnumType(edmType))
|
||||
{
|
||||
typeName = _code.Escape(clrType);
|
||||
}
|
||||
|
||||
typeName = FixNamespaces(typeName);
|
||||
|
||||
return clrType.IsValueType && isNullable == true ?
|
||||
String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
|
||||
typeName;
|
||||
}
|
||||
|
||||
throw new ArgumentException("edmType");
|
||||
}
|
||||
|
||||
public Type UnderlyingClrType(EdmType edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
var primitiveType = edmType as PrimitiveType;
|
||||
if (primitiveType != null)
|
||||
{
|
||||
return primitiveType.ClrEquivalentType;
|
||||
}
|
||||
|
||||
if (IsEnumType(edmType))
|
||||
{
|
||||
return GetEnumUnderlyingType(edmType).ClrEquivalentType;
|
||||
}
|
||||
|
||||
return typeof(object);
|
||||
}
|
||||
|
||||
public object GetEnumMemberValue(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var valueProperty = enumMember.GetType().GetProperty("Value");
|
||||
return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public string GetEnumMemberName(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var nameProperty = enumMember.GetType().GetProperty("Name");
|
||||
return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var membersProperty = enumType.GetType().GetProperty("Members");
|
||||
return membersProperty != null
|
||||
? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
|
||||
: Enumerable.Empty<MetadataItem>();
|
||||
}
|
||||
|
||||
public bool EnumIsFlags(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
|
||||
return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public bool IsEnumType(GlobalItem edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
return edmType.GetType().Name == "EnumType";
|
||||
}
|
||||
|
||||
public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public string CreateLiteral(object value)
|
||||
{
|
||||
if (value == null || value.GetType() != typeof(TimeSpan))
|
||||
{
|
||||
return _code.CreateLiteral(value);
|
||||
}
|
||||
|
||||
return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
|
||||
}
|
||||
|
||||
public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
|
||||
{
|
||||
ArgumentNotNull(types, "types");
|
||||
ArgumentNotNull(sourceFile, "sourceFile");
|
||||
|
||||
var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
|
||||
if (types.Any(item => !hash.Add(item)))
|
||||
{
|
||||
_errors.Add(
|
||||
new CompilerError(sourceFile, -1, -1, "6023",
|
||||
String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return GetItemsToGenerate<SimpleType>(itemCollection)
|
||||
.Where(e => IsEnumType(e));
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
|
||||
{
|
||||
return itemCollection
|
||||
.OfType<T>()
|
||||
.Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
|
||||
.OrderBy(i => i.Name);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return itemCollection
|
||||
.Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
|
||||
.Select(g => GetGlobalItemName(g));
|
||||
}
|
||||
|
||||
public string GetGlobalItemName(GlobalItem item)
|
||||
{
|
||||
if (item is EdmType)
|
||||
{
|
||||
return ((EdmType)item).Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ((EntityContainer)item).Name;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
|
||||
}
|
||||
|
||||
public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
|
||||
return returnParamsProperty == null
|
||||
? edmFunction.ReturnParameter
|
||||
: ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
|
||||
}
|
||||
|
||||
public bool IsComposable(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
|
||||
return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
|
||||
}
|
||||
|
||||
public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
|
||||
{
|
||||
return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
}
|
||||
|
||||
public TypeUsage GetReturnType(EdmFunction edmFunction)
|
||||
{
|
||||
var returnParam = GetReturnParameter(edmFunction);
|
||||
return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
|
||||
}
|
||||
|
||||
public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
|
||||
{
|
||||
var returnType = GetReturnType(edmFunction);
|
||||
return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ArgumentNotNull<T>(T arg, string name) where T : class
|
||||
{
|
||||
if (arg == null)
|
||||
{
|
||||
throw new ArgumentNullException(name);
|
||||
}
|
||||
}
|
||||
#>
|
189
Bar_Five/Bar_Five.csproj
Normal file
189
Bar_Five/Bar_Five.csproj
Normal file
@ -0,0 +1,189 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B97CAB6A-CE18-4BF4-ABE0-8649C67642C1}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Bar_Five</RootNamespace>
|
||||
<AssemblyName>Bar_Five</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<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' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.2.0\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.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Security" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="Assort_tovar.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarBaseSQL.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PageSpravka.xaml.cs">
|
||||
<DependentUpon>PageSpravka.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Postovshiki.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Price_list.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Recept.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Rekvezits.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Sotrudnik.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Spravka.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Svedinia.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="sysdiagrams.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Zakuski.cs">
|
||||
<DependentUpon>BarBaseSQL.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BarBaseSQL.Context.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>BarBaseSQL.Context.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarBaseSQL.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>BarBaseSQL.edmx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="PageList.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="PageSpravka.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="PageList.xaml.cs">
|
||||
<DependentUpon>PageList.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EntityDeploy Include="BarBaseSQL.edmx">
|
||||
<Generator>EntityModelCodeGenerator</Generator>
|
||||
<LastGenOutput>BarBaseSQL.Designer.cs</LastGenOutput>
|
||||
</EntityDeploy>
|
||||
<None Include="BarBaseSQL.edmx.diagram">
|
||||
<DependentUpon>BarBaseSQL.edmx</DependentUpon>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="BarBaseSQL.Context.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<LastGenOutput>BarBaseSQL.Context.cs</LastGenOutput>
|
||||
<DependentUpon>BarBaseSQL.edmx</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="BarBaseSQL.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<DependentUpon>BarBaseSQL.edmx</DependentUpon>
|
||||
<LastGenOutput>BarBaseSQL.cs</LastGenOutput>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
18
Bar_Five/MainWindow.xaml
Normal file
18
Bar_Five/MainWindow.xaml
Normal file
@ -0,0 +1,18 @@
|
||||
<Window x:Class="Bar_Five.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Bar_Five"
|
||||
mc:Ignorable="d"
|
||||
Title="Bar.exe" Height="600" Width="1000">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions >
|
||||
<RowDefinition Height="19*" />
|
||||
<RowDefinition Height="54*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Справка о наличии товаров" Margin="-1,82,1,39" Click="Button_Click" />
|
||||
<Button Content="Прайс-лист" Margin="0,125,0,0" Click="Button_Click_1" />
|
||||
<Frame x:Name="Navigation" Grid.Row="2" NavigationUIVisibility="Hidden"/>
|
||||
</Grid>
|
||||
</Window>
|
38
Bar_Five/MainWindow.xaml.cs
Normal file
38
Bar_Five/MainWindow.xaml.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Navigation.Content = new PageSpravka();
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Navigation.Content = new PageList();
|
||||
}
|
||||
}
|
||||
}
|
28
Bar_Five/PageList.xaml
Normal file
28
Bar_Five/PageList.xaml
Normal file
@ -0,0 +1,28 @@
|
||||
<Page x:Class="Bar_Five.PageList"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Bar_Five"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="600" d:DesignWidth="1000"
|
||||
Title="PageList">
|
||||
|
||||
<Grid>
|
||||
<DataGrid x:Name="dbList" CanUserAddRows="False" Background="White" AutoGenerateColumns="False" >
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Номер стороки" Binding="{Binding ID}"/>
|
||||
<DataGridTextColumn Header="Название товара" Binding="{Binding Name_tovar}"/>
|
||||
<DataGridTextColumn Header="Находится на складе" Binding="{Binding sklad}"/>
|
||||
<DataGridTextColumn Header="Количество" Binding="{Binding Kol_vo}"/>
|
||||
<DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button x:Name="edit">Показать</Button>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Page>
|
36
Bar_Five/PageList.xaml.cs
Normal file
36
Bar_Five/PageList.xaml.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для PageList.xaml
|
||||
/// </summary>
|
||||
public partial class PageList : Page
|
||||
{
|
||||
public PageList()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void OnInitialized(EventArgs e)
|
||||
{
|
||||
FiveBarSQLEntities context = new FiveBarSQLEntities();
|
||||
|
||||
dbList.ItemsSource = context.Spravka.ToArray();
|
||||
|
||||
base.OnInitialized(e);
|
||||
}
|
||||
}
|
||||
}
|
21
Bar_Five/PageSpravka.xaml
Normal file
21
Bar_Five/PageSpravka.xaml
Normal file
@ -0,0 +1,21 @@
|
||||
<Page x:Class="Bar_Five.PageSpravka"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Bar_Five"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
Title="PageSpravka">
|
||||
|
||||
<Grid>
|
||||
<DataGrid x:Name="dbPrice" Background="White" AutoGenerateColumns="False">
|
||||
<DataGrid.Columns >
|
||||
<DataGridTextColumn Header="Номер стоки" Binding="{Binding ID}" />
|
||||
<DataGridTextColumn Header="Название товара" Binding="{Binding Name_Tovar}" />
|
||||
<DataGridTextColumn Header="Количество" Binding="{Binding Kol_vo}" />
|
||||
<DataGridTextColumn Header="Цена за одну" Binding="{Binding Price}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Page>
|
34
Bar_Five/PageSpravka.xaml.cs
Normal file
34
Bar_Five/PageSpravka.xaml.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для PageSpravka.xaml
|
||||
/// </summary>
|
||||
public partial class PageSpravka : Page
|
||||
{
|
||||
public PageSpravka()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void OnInitialized(EventArgs e)
|
||||
{
|
||||
FiveBarSQLEntities context = new FiveBarSQLEntities();
|
||||
dbPrice.ItemsSource = context.Price_list.ToArray();
|
||||
base.OnInitialized(e);
|
||||
}
|
||||
}
|
||||
}
|
28
Bar_Five/Postovshiki.cs
Normal file
28
Bar_Five/Postovshiki.cs
Normal file
@ -0,0 +1,28 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Postovshiki
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Nullable<decimal> Posht_index { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Faks { get; set; }
|
||||
public string E_mail { get; set; }
|
||||
public Nullable<int> Banks_recvethits { get; set; }
|
||||
public Nullable<int> Assort_tovar { get; set; }
|
||||
|
||||
public virtual Rekvezits Rekvezits { get; set; }
|
||||
}
|
||||
}
|
31
Bar_Five/Price_list.cs
Normal file
31
Bar_Five/Price_list.cs
Normal file
@ -0,0 +1,31 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Price_list
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Price_list()
|
||||
{
|
||||
this.Assort_tovar = new HashSet<Assort_tovar>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Name_Tovar { get; set; }
|
||||
public Nullable<decimal> Kol_vo { get; set; }
|
||||
public Nullable<decimal> Price { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Assort_tovar> Assort_tovar { get; set; }
|
||||
}
|
||||
}
|
55
Bar_Five/Properties/AssemblyInfo.cs
Normal file
55
Bar_Five/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,55 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
// Общие сведения об этой сборке предоставляются следующим набором
|
||||
// набор атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
|
||||
// связанные со сборкой.
|
||||
[assembly: AssemblyTitle("Bar_Five")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Bar_Five")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
|
||||
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
|
||||
// из модели COM, установите атрибут ComVisible для этого типа в значение true.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
//Чтобы начать создание локализуемых приложений, задайте
|
||||
//<UICulture>CultureYouAreCodingWith</UICulture> в файле .csproj
|
||||
//в <PropertyGroup>. Например, при использовании английского (США)
|
||||
//в своих исходных файлах установите <UICulture> в en-US. Затем отмените преобразование в комментарий
|
||||
//атрибута NeutralResourceLanguage ниже. Обновите "en-US" в
|
||||
//строка внизу для обеспечения соответствия настройки UICulture в файле проекта.
|
||||
|
||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //где расположены словари ресурсов по конкретным тематикам
|
||||
//(используется, если ресурс не найден на странице,
|
||||
// или в словарях ресурсов приложения)
|
||||
ResourceDictionaryLocation.SourceAssembly //где расположен словарь универсальных ресурсов
|
||||
//(используется, если ресурс не найден на странице,
|
||||
// в приложении или в каких-либо словарях ресурсов для конкретной темы)
|
||||
)]
|
||||
|
||||
|
||||
// Сведения о версии для сборки включают четыре следующих значения:
|
||||
//
|
||||
// Основной номер версии
|
||||
// Дополнительный номер версии
|
||||
// Номер сборки
|
||||
// Номер редакции
|
||||
//
|
||||
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
||||
// используя "*", как показано ниже:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
Bar_Five/Properties/Resources.Designer.cs
generated
Normal file
71
Bar_Five/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код был создан программным средством.
|
||||
// Версия среды выполнения: 4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
|
||||
// код создан повторно.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
|
||||
/// </summary>
|
||||
// Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
|
||||
// класс с помощью таких средств, как ResGen или Visual Studio.
|
||||
// Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
|
||||
// с параметром /str или заново постройте свой VS-проект.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Bar_Five.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Переопределяет свойство CurrentUICulture текущего потока для всех
|
||||
/// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
Bar_Five/Properties/Resources.resx
Normal file
117
Bar_Five/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
Bar_Five/Properties/Settings.Designer.cs
generated
Normal file
30
Bar_Five/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
Bar_Five/Properties/Settings.settings
Normal file
7
Bar_Five/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
31
Bar_Five/Recept.cs
Normal file
31
Bar_Five/Recept.cs
Normal file
@ -0,0 +1,31 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Recept
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Recept()
|
||||
{
|
||||
this.Zakuski = new HashSet<Zakuski>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Nullable<decimal> Kol_vo { get; set; }
|
||||
public string Ed_mer { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Zakuski> Zakuski { get; set; }
|
||||
}
|
||||
}
|
32
Bar_Five/Rekvezits.cs
Normal file
32
Bar_Five/Rekvezits.cs
Normal file
@ -0,0 +1,32 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Rekvezits
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Rekvezits()
|
||||
{
|
||||
this.Postovshiki = new HashSet<Postovshiki>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Name_Bank { get; set; }
|
||||
public string Gorod { get; set; }
|
||||
public Nullable<decimal> Inn { get; set; }
|
||||
public string Pay_Shet { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Postovshiki> Postovshiki { get; set; }
|
||||
}
|
||||
}
|
27
Bar_Five/Sotrudnik.cs
Normal file
27
Bar_Five/Sotrudnik.cs
Normal file
@ -0,0 +1,27 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Sotrudnik
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FIO { get; set; }
|
||||
public string Adres { get; set; }
|
||||
public Nullable<System.DateTime> Data_birday { get; set; }
|
||||
public string Status { get; set; }
|
||||
public Nullable<decimal> Pay_chek { get; set; }
|
||||
public Nullable<int> Chek_Status { get; set; }
|
||||
|
||||
public virtual Svedinia Svedinia { get; set; }
|
||||
}
|
||||
}
|
31
Bar_Five/Spravka.cs
Normal file
31
Bar_Five/Spravka.cs
Normal file
@ -0,0 +1,31 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Spravka
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Spravka()
|
||||
{
|
||||
this.Assort_tovar = new HashSet<Assort_tovar>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Name_tovar { get; set; }
|
||||
public Nullable<decimal> sklad { get; set; }
|
||||
public Nullable<decimal> Kol_vo { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Assort_tovar> Assort_tovar { get; set; }
|
||||
}
|
||||
}
|
32
Bar_Five/Svedinia.cs
Normal file
32
Bar_Five/Svedinia.cs
Normal file
@ -0,0 +1,32 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Svedinia
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Svedinia()
|
||||
{
|
||||
this.Sotrudnik = new HashSet<Sotrudnik>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string Prichina { get; set; }
|
||||
public Nullable<decimal> Number { get; set; }
|
||||
public Nullable<System.DateTime> Data_prikaz { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Sotrudnik> Sotrudnik { get; set; }
|
||||
}
|
||||
}
|
25
Bar_Five/Zakuski.cs
Normal file
25
Bar_Five/Zakuski.cs
Normal file
@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Zakuski
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name_Cocteil { get; set; }
|
||||
public Nullable<decimal> Crep { get; set; }
|
||||
public string Razmer_Part { get; set; }
|
||||
public Nullable<int> Recept { get; set; }
|
||||
|
||||
public virtual Recept Recept1 { get; set; }
|
||||
}
|
||||
}
|
BIN
Bar_Five/bin/Debug/Bar_Five.exe
Normal file
BIN
Bar_Five/bin/Debug/Bar_Five.exe
Normal file
Binary file not shown.
23
Bar_Five/bin/Debug/Bar_Five.exe.config
Normal file
23
Bar_Five/bin/Debug/Bar_Five.exe.config
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<connectionStrings>
|
||||
<add name="FiveBarSQLEntities" connectionString="metadata=res://*/BarBaseSQL.csdl|res://*/BarBaseSQL.ssdl|res://*/BarBaseSQL.msl;provider=System.Data.SqlClient;provider connection string="data source=CAB318-12;initial catalog=FiveBarSQL;integrated security=True;trustservercertificate=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||
</connectionStrings>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
<parameter value="mssqllocaldb" />
|
||||
</parameters>
|
||||
</defaultConnectionFactory>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
BIN
Bar_Five/bin/Debug/Bar_Five.pdb
Normal file
BIN
Bar_Five/bin/Debug/Bar_Five.pdb
Normal file
Binary file not shown.
BIN
Bar_Five/bin/Debug/EntityFramework.SqlServer.dll
Normal file
BIN
Bar_Five/bin/Debug/EntityFramework.SqlServer.dll
Normal file
Binary file not shown.
2093
Bar_Five/bin/Debug/EntityFramework.SqlServer.xml
Normal file
2093
Bar_Five/bin/Debug/EntityFramework.SqlServer.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bar_Five/bin/Debug/EntityFramework.dll
Normal file
BIN
Bar_Five/bin/Debug/EntityFramework.dll
Normal file
Binary file not shown.
53236
Bar_Five/bin/Debug/EntityFramework.xml
Normal file
53236
Bar_Five/bin/Debug/EntityFramework.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bar_Five/bin/Debug/ru/EntityFramework.resources.dll
Normal file
BIN
Bar_Five/bin/Debug/ru/EntityFramework.resources.dll
Normal file
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
70
Bar_Five/obj/Debug/App.g.cs
Normal file
70
Bar_Five/obj/Debug/App.g.cs
Normal file
@ -0,0 +1,70 @@
|
||||
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92B4D11028BFC5E2DB2AE9A598330C445FDA12C6FDDDFEB577C2716B09420437"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
|
||||
#line 5 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Bar_Five.App app = new Bar_Five.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
70
Bar_Five/obj/Debug/App.g.i.cs
Normal file
70
Bar_Five/obj/Debug/App.g.i.cs
Normal file
@ -0,0 +1,70 @@
|
||||
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92B4D11028BFC5E2DB2AE9A598330C445FDA12C6FDDDFEB577C2716B09420437"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
|
||||
#line 5 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Bar_Five.App app = new Bar_Five.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Bar_Five/obj/Debug/Bar_Five.Properties.Resources.resources
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.Properties.Resources.resources
Normal file
Binary file not shown.
BIN
Bar_Five/obj/Debug/Bar_Five.csproj.AssemblyReference.cache
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
f47ddcd3bb0fd33cb22311ee62e7d3ff25dcb0e01ce4d5c1b6f3032616e35e8e
|
26
Bar_Five/obj/Debug/Bar_Five.csproj.FileListAbsolute.txt
Normal file
26
Bar_Five/obj/Debug/Bar_Five.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,26 @@
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\Bar_Five.exe.config
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\Bar_Five.exe
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\Bar_Five.pdb
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.csproj.AssemblyReference.cache
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\MainWindow.g.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\App.g.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five_MarkupCompile.cache
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five_MarkupCompile.lref
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\MainWindow.baml
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.g.resources
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.Properties.Resources.resources
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.csproj.GenerateResource.cache
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.csproj.CoreCompileInputs.cache
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.exe
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.pdb
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\EntityFramework.dll
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\EntityFramework.SqlServer.dll
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\EntityFramework.xml
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\EntityFramework.SqlServer.xml
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\bin\Debug\ru\EntityFramework.resources.dll
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\PageList.g.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five_Content.g.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\PageList.baml
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\Bar_Five.csproj.Up2Date
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\PageSpravka.g.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\PageSpravka.baml
|
BIN
Bar_Five/obj/Debug/Bar_Five.csproj.GenerateResource.cache
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.csproj.GenerateResource.cache
Normal file
Binary file not shown.
0
Bar_Five/obj/Debug/Bar_Five.csproj.Up2Date
Normal file
0
Bar_Five/obj/Debug/Bar_Five.csproj.Up2Date
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.exe
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.exe
Normal file
Binary file not shown.
BIN
Bar_Five/obj/Debug/Bar_Five.g.resources
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.g.resources
Normal file
Binary file not shown.
BIN
Bar_Five/obj/Debug/Bar_Five.pdb
Normal file
BIN
Bar_Five/obj/Debug/Bar_Five.pdb
Normal file
Binary file not shown.
14
Bar_Five/obj/Debug/Bar_Five_Content.g.cs
Normal file
14
Bar_Five/obj/Debug/Bar_Five_Content.g.cs
Normal file
@ -0,0 +1,14 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("barbasesql.context.tt")]
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("barbasesql.tt")]
|
||||
|
||||
|
14
Bar_Five/obj/Debug/Bar_Five_Content.g.i.cs
Normal file
14
Bar_Five/obj/Debug/Bar_Five_Content.g.i.cs
Normal file
@ -0,0 +1,14 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("barbasesql.context.tt")]
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("barbasesql.tt")]
|
||||
|
||||
|
20
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.cache
Normal file
20
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.cache
Normal file
@ -0,0 +1,20 @@
|
||||
Bar_Five
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\
|
||||
Bar_Five
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\App.xaml
|
||||
3-929838767
|
||||
21085826545
|
||||
202084124210
|
||||
18-1339950761
|
||||
MainWindow.xaml;PageList.xaml;PageSpravka.xaml;
|
||||
|
||||
False
|
||||
|
20
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.i.cache
Normal file
20
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.i.cache
Normal file
@ -0,0 +1,20 @@
|
||||
Bar_Five
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\obj\Debug\
|
||||
Bar_Five
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
D:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\App.xaml
|
||||
3-929838767
|
||||
21085826545
|
||||
212035592
|
||||
18-1339950761
|
||||
MainWindow.xaml;PageList.xaml;PageSpravka.xaml;
|
||||
|
||||
True
|
||||
|
6
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.i.lref
Normal file
6
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.i.lref
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\MainWindow.xaml;;
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\PageList.xaml;;
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\PageSpravka.xaml;;
|
||||
|
6
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.lref
Normal file
6
Bar_Five/obj/Debug/Bar_Five_MarkupCompile.lref
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\MainWindow.xaml;;
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\PageList.xaml;;
|
||||
FD:\ExamDecanat_Mdk\Bar_5\Bar_Five\Bar_Five\PageSpravka.xaml;;
|
||||
|
BIN
Bar_Five/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
BIN
Bar_Five/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
Binary file not shown.
Binary file not shown.
BIN
Bar_Five/obj/Debug/MainWindow.baml
Normal file
BIN
Bar_Five/obj/Debug/MainWindow.baml
Normal file
Binary file not shown.
105
Bar_Five/obj/Debug/MainWindow.g.cs
Normal file
105
Bar_Five/obj/Debug/MainWindow.g.cs
Normal file
@ -0,0 +1,105 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BD5B6766FE742B83634A9320B7EEF56921BFCCAEA8C4225ED898B22E484AC9EC"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Frame Navigation;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 15 "..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.Navigation = ((System.Windows.Controls.Frame)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
105
Bar_Five/obj/Debug/MainWindow.g.i.cs
Normal file
105
Bar_Five/obj/Debug/MainWindow.g.i.cs
Normal file
@ -0,0 +1,105 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BD5B6766FE742B83634A9320B7EEF56921BFCCAEA8C4225ED898B22E484AC9EC"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Frame Navigation;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 15 "..\..\MainWindow.xaml"
|
||||
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.Navigation = ((System.Windows.Controls.Frame)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Bar_Five/obj/Debug/PageList.baml
Normal file
BIN
Bar_Five/obj/Debug/PageList.baml
Normal file
Binary file not shown.
89
Bar_Five/obj/Debug/PageList.g.cs
Normal file
89
Bar_Five/obj/Debug/PageList.g.cs
Normal file
@ -0,0 +1,89 @@
|
||||
#pragma checksum "..\..\PageList.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "075CAA1A028337B2E7BC0E53115BB55921E1CFE05905F556A03A959BF705609B"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageList
|
||||
/// </summary>
|
||||
public partial class PageList : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\PageList.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dbList;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/pagelist.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\PageList.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.dbList = ((System.Windows.Controls.DataGrid)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
89
Bar_Five/obj/Debug/PageList.g.i.cs
Normal file
89
Bar_Five/obj/Debug/PageList.g.i.cs
Normal file
@ -0,0 +1,89 @@
|
||||
#pragma checksum "..\..\PageList.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "075CAA1A028337B2E7BC0E53115BB55921E1CFE05905F556A03A959BF705609B"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageList
|
||||
/// </summary>
|
||||
public partial class PageList : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\PageList.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dbList;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/pagelist.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\PageList.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.dbList = ((System.Windows.Controls.DataGrid)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Bar_Five/obj/Debug/PageSpravka.baml
Normal file
BIN
Bar_Five/obj/Debug/PageSpravka.baml
Normal file
Binary file not shown.
89
Bar_Five/obj/Debug/PageSpravka.g.cs
Normal file
89
Bar_Five/obj/Debug/PageSpravka.g.cs
Normal file
@ -0,0 +1,89 @@
|
||||
#pragma checksum "..\..\PageSpravka.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BF4DADB86635CC8489C30CAEC7D7BBE6DC9415A8A078025A60722BA57DBC83DD"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageSpravka
|
||||
/// </summary>
|
||||
public partial class PageSpravka : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\PageSpravka.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dbPrice;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/pagespravka.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\PageSpravka.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.dbPrice = ((System.Windows.Controls.DataGrid)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
89
Bar_Five/obj/Debug/PageSpravka.g.i.cs
Normal file
89
Bar_Five/obj/Debug/PageSpravka.g.i.cs
Normal file
@ -0,0 +1,89 @@
|
||||
#pragma checksum "..\..\PageSpravka.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BF4DADB86635CC8489C30CAEC7D7BBE6DC9415A8A078025A60722BA57DBC83DD"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Bar_Five;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Bar_Five {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageSpravka
|
||||
/// </summary>
|
||||
public partial class PageSpravka : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 12 "..\..\PageSpravka.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dbPrice;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Bar_Five;component/pagespravka.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\PageSpravka.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.dbPrice = ((System.Windows.Controls.DataGrid)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
0
Bar_Five/obj/Debug/TempPE/BarBaseSQL.Context.cs.dll
Normal file
0
Bar_Five/obj/Debug/TempPE/BarBaseSQL.Context.cs.dll
Normal file
BIN
Bar_Five/obj/Debug/TempPE/BarBaseSQL.Designer.cs.dll
Normal file
BIN
Bar_Five/obj/Debug/TempPE/BarBaseSQL.Designer.cs.dll
Normal file
Binary file not shown.
BIN
Bar_Five/obj/Debug/TempPE/BarBaseSQL.cs.dll
Normal file
BIN
Bar_Five/obj/Debug/TempPE/BarBaseSQL.cs.dll
Normal file
Binary file not shown.
209
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.csdl
Normal file
209
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.csdl
Normal file
@ -0,0 +1,209 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Schema Namespace="FiveBarSQLModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
||||
<EntityType Name="Assort_tovar">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Yslov_postav" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Yslov_pay" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Sklad" Type="Int32" />
|
||||
<Property Name="Nalicie" Type="Int32" />
|
||||
<NavigationProperty Name="Price_list" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Assort_tovar" ToRole="Price_list" />
|
||||
<NavigationProperty Name="Spravka" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Assort_tovar" ToRole="Spravka" />
|
||||
</EntityType>
|
||||
<EntityType Name="Postovshiki">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Posht_index" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Phone" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Faks" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="E_mail" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Banks_recvethits" Type="Int32" />
|
||||
<Property Name="Assort_tovar" Type="Int32" />
|
||||
<NavigationProperty Name="Rekvezits" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Postovshiki" ToRole="Rekvezits" />
|
||||
</EntityType>
|
||||
<EntityType Name="Price_list">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
||||
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Price_list" ToRole="Assort_tovar" />
|
||||
</EntityType>
|
||||
<EntityType Name="Recept">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Ed_mer" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<NavigationProperty Name="Zakuski" Relationship="Self.FK_Zakuski_Recept" FromRole="Recept" ToRole="Zakuski" />
|
||||
</EntityType>
|
||||
<EntityType Name="Rekvezits">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Bank" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Gorod" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Inn" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Pay_Shet" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<NavigationProperty Name="Postovshiki" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Rekvezits" ToRole="Postovshiki" />
|
||||
</EntityType>
|
||||
<EntityType Name="Sotrudnik">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="FIO" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Adres" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Data_birday" Type="DateTime" Precision="0" />
|
||||
<Property Name="Status" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Pay_chek" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Chek_Status" Type="Int32" />
|
||||
<NavigationProperty Name="Svedinia" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Sotrudnik" ToRole="Svedinia" />
|
||||
</EntityType>
|
||||
<EntityType Name="Spravka">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="sklad" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
||||
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Spravka" ToRole="Assort_tovar" />
|
||||
</EntityType>
|
||||
<EntityType Name="Svedinia">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Status" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Prichina" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Number" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Data_prikaz" Type="DateTime" Precision="0" />
|
||||
<NavigationProperty Name="Sotrudnik" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Svedinia" ToRole="Sotrudnik" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="principal_id" Type="Int32" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="version" Type="Int32" />
|
||||
<Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Zakuski">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Name_Cocteil" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Crep" Type="Decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Razmer_Part" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Recept" Type="Int32" />
|
||||
<NavigationProperty Name="Recept1" Relationship="Self.FK_Zakuski_Recept" FromRole="Zakuski" ToRole="Recept" />
|
||||
</EntityType>
|
||||
<Association Name="FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" Type="Self.Price_list" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Price_list">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Sklad" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" Type="Self.Spravka" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Spravka">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Nalicie" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" Type="Self.Rekvezits" Multiplicity="0..1" />
|
||||
<End Role="Postovshiki" Type="Self.Postovshiki" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Rekvezits">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Postovshiki">
|
||||
<PropertyRef Name="Banks_recvethits" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Zakuski_Recept">
|
||||
<End Role="Recept" Type="Self.Recept" Multiplicity="0..1" />
|
||||
<End Role="Zakuski" Type="Self.Zakuski" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Recept">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Zakuski">
|
||||
<PropertyRef Name="Recept" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" Type="Self.Svedinia" Multiplicity="0..1" />
|
||||
<End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Svedinia">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Sotrudnik">
|
||||
<PropertyRef Name="Chek_Status" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityContainer Name="FiveBarSQLEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" />
|
||||
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" />
|
||||
<EntitySet Name="Price_list" EntityType="Self.Price_list" />
|
||||
<EntitySet Name="Recept" EntityType="Self.Recept" />
|
||||
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" />
|
||||
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" />
|
||||
<EntitySet Name="Spravka" EntityType="Self.Spravka" />
|
||||
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
||||
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" />
|
||||
<AssociationSet Name="FK_Assort_tovar_Price_list" Association="Self.FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" EntitySet="Price_list" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Assort_tovar_Spravka" Association="Self.FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" EntitySet="Spravka" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Postovshiki_Rekvezits" Association="Self.FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" EntitySet="Rekvezits" />
|
||||
<End Role="Postovshiki" EntitySet="Postovshiki" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
|
||||
<End Role="Recept" EntitySet="Recept" />
|
||||
<End Role="Zakuski" EntitySet="Zakuski" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" EntitySet="Svedinia" />
|
||||
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
</Schema>
|
119
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.msl
Normal file
119
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.msl
Normal file
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
||||
<EntityContainerMapping StorageEntityContainer="Хранилище FiveBarSQLModelContainer" CdmEntityContainer="FiveBarSQLEntities">
|
||||
<EntitySetMapping Name="Assort_tovar">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Assort_tovar">
|
||||
<MappingFragment StoreEntitySet="Assort_tovar">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Price" ColumnName="Price" />
|
||||
<ScalarProperty Name="Yslov_postav" ColumnName="Yslov_postav" />
|
||||
<ScalarProperty Name="Yslov_pay" ColumnName="Yslov_pay" />
|
||||
<ScalarProperty Name="Sklad" ColumnName="Sklad" />
|
||||
<ScalarProperty Name="Nalicie" ColumnName="Nalicie" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Postovshiki">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Postovshiki">
|
||||
<MappingFragment StoreEntitySet="Postovshiki">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Posht_index" ColumnName="Posht_index" />
|
||||
<ScalarProperty Name="Phone" ColumnName="Phone" />
|
||||
<ScalarProperty Name="Faks" ColumnName="Faks" />
|
||||
<ScalarProperty Name="E_mail" ColumnName="E_mail" />
|
||||
<ScalarProperty Name="Banks_recvethits" ColumnName="Banks_recvethits" />
|
||||
<ScalarProperty Name="Assort_tovar" ColumnName="Assort_tovar" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Price_list">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Price_list">
|
||||
<MappingFragment StoreEntitySet="Price_list">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Tovar" ColumnName="Name_Tovar" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
<ScalarProperty Name="Price" ColumnName="Price" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Recept">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Recept">
|
||||
<MappingFragment StoreEntitySet="Recept">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
<ScalarProperty Name="Ed_mer" ColumnName="Ed_mer" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Rekvezits">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Rekvezits">
|
||||
<MappingFragment StoreEntitySet="Rekvezits">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Bank" ColumnName="Name_Bank" />
|
||||
<ScalarProperty Name="Gorod" ColumnName="Gorod" />
|
||||
<ScalarProperty Name="Inn" ColumnName="Inn" />
|
||||
<ScalarProperty Name="Pay_Shet" ColumnName="Pay_Shet" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Sotrudnik">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Sotrudnik">
|
||||
<MappingFragment StoreEntitySet="Sotrudnik">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="FIO" ColumnName="FIO" />
|
||||
<ScalarProperty Name="Adres" ColumnName="Adres" />
|
||||
<ScalarProperty Name="Data_birday" ColumnName="Data_birday" />
|
||||
<ScalarProperty Name="Status" ColumnName="Status" />
|
||||
<ScalarProperty Name="Pay_chek" ColumnName="Pay_chek" />
|
||||
<ScalarProperty Name="Chek_Status" ColumnName="Chek_Status" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Spravka">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Spravka">
|
||||
<MappingFragment StoreEntitySet="Spravka">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_tovar" ColumnName="Name_tovar" />
|
||||
<ScalarProperty Name="sklad" ColumnName="sklad" />
|
||||
<ScalarProperty Name="Kol_vo" ColumnName="Kol_vo" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Svedinia">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Svedinia">
|
||||
<MappingFragment StoreEntitySet="Svedinia">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Status" ColumnName="Status" />
|
||||
<ScalarProperty Name="Prichina" ColumnName="Prichina" />
|
||||
<ScalarProperty Name="Number" ColumnName="Number" />
|
||||
<ScalarProperty Name="Data_prikaz" ColumnName="Data_prikaz" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="sysdiagrams">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.sysdiagrams">
|
||||
<MappingFragment StoreEntitySet="sysdiagrams">
|
||||
<ScalarProperty Name="name" ColumnName="name" />
|
||||
<ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
||||
<ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
||||
<ScalarProperty Name="version" ColumnName="version" />
|
||||
<ScalarProperty Name="definition" ColumnName="definition" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Zakuski">
|
||||
<EntityTypeMapping TypeName="FiveBarSQLModel.Zakuski">
|
||||
<MappingFragment StoreEntitySet="Zakuski">
|
||||
<ScalarProperty Name="ID" ColumnName="ID" />
|
||||
<ScalarProperty Name="Name_Cocteil" ColumnName="Name_Cocteil" />
|
||||
<ScalarProperty Name="Crep" ColumnName="Crep" />
|
||||
<ScalarProperty Name="Razmer_Part" ColumnName="Razmer_Part" />
|
||||
<ScalarProperty Name="Recept" ColumnName="Recept" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
199
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.ssdl
Normal file
199
Bar_Five/obj/Debug/edmxResourcesToEmbed/BarBaseSQL.ssdl
Normal file
@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Schema Namespace="Хранилище FiveBarSQLModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<EntityType Name="Assort_tovar">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Yslov_postav" Type="nvarchar(max)" />
|
||||
<Property Name="Yslov_pay" Type="nvarchar(max)" />
|
||||
<Property Name="Sklad" Type="int" />
|
||||
<Property Name="Nalicie" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Postovshiki">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Posht_index" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Phone" Type="nvarchar(max)" />
|
||||
<Property Name="Faks" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="E_mail" Type="nvarchar(max)" />
|
||||
<Property Name="Banks_recvethits" Type="int" />
|
||||
<Property Name="Assort_tovar" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Price_list">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Tovar" Type="nvarchar(max)" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
|
||||
</EntityType>
|
||||
<EntityType Name="Recept">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar(max)" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Ed_mer" Type="nvarchar" MaxLength="50" />
|
||||
</EntityType>
|
||||
<EntityType Name="Rekvezits">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Bank" Type="nvarchar(max)" />
|
||||
<Property Name="Gorod" Type="nvarchar(max)" />
|
||||
<Property Name="Inn" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Pay_Shet" Type="nvarchar(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="Sotrudnik">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="FIO" Type="nvarchar(max)" />
|
||||
<Property Name="Adres" Type="nvarchar(max)" />
|
||||
<Property Name="Data_birday" Type="date" />
|
||||
<Property Name="Status" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Pay_chek" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Chek_Status" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Spravka">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_tovar" Type="nvarchar(max)" />
|
||||
<Property Name="sklad" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
|
||||
</EntityType>
|
||||
<EntityType Name="Svedinia">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Status" Type="nvarchar(max)" />
|
||||
<Property Name="Prichina" Type="nvarchar(max)" />
|
||||
<Property Name="Number" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Data_prikaz" Type="date" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
|
||||
<Property Name="principal_id" Type="int" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="version" Type="int" />
|
||||
<Property Name="definition" Type="varbinary(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="Zakuski">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
</Key>
|
||||
<Property Name="ID" Type="int" Nullable="false" />
|
||||
<Property Name="Name_Cocteil" Type="nvarchar(max)" />
|
||||
<Property Name="Crep" Type="decimal" Precision="18" Scale="0" />
|
||||
<Property Name="Razmer_Part" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Recept" Type="int" />
|
||||
</EntityType>
|
||||
<Association Name="FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" Type="Self.Price_list" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Price_list">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Sklad" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" Type="Self.Spravka" Multiplicity="0..1" />
|
||||
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Spravka">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Assort_tovar">
|
||||
<PropertyRef Name="Nalicie" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" Type="Self.Rekvezits" Multiplicity="0..1" />
|
||||
<End Role="Postovshiki" Type="Self.Postovshiki" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Rekvezits">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Postovshiki">
|
||||
<PropertyRef Name="Banks_recvethits" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" Type="Self.Svedinia" Multiplicity="0..1" />
|
||||
<End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Svedinia">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Sotrudnik">
|
||||
<PropertyRef Name="Chek_Status" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Zakuski_Recept">
|
||||
<End Role="Recept" Type="Self.Recept" Multiplicity="0..1" />
|
||||
<End Role="Zakuski" Type="Self.Zakuski" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Recept">
|
||||
<PropertyRef Name="ID" />
|
||||
</Principal>
|
||||
<Dependent Role="Zakuski">
|
||||
<PropertyRef Name="Recept" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityContainer Name="Хранилище FiveBarSQLModelContainer">
|
||||
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Price_list" EntityType="Self.Price_list" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Recept" EntityType="Self.Recept" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Spravka" EntityType="Self.Spravka" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" Schema="dbo" store:Type="Tables" />
|
||||
<AssociationSet Name="FK_Assort_tovar_Price_list" Association="Self.FK_Assort_tovar_Price_list">
|
||||
<End Role="Price_list" EntitySet="Price_list" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Assort_tovar_Spravka" Association="Self.FK_Assort_tovar_Spravka">
|
||||
<End Role="Spravka" EntitySet="Spravka" />
|
||||
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Postovshiki_Rekvezits" Association="Self.FK_Postovshiki_Rekvezits">
|
||||
<End Role="Rekvezits" EntitySet="Rekvezits" />
|
||||
<End Role="Postovshiki" EntitySet="Postovshiki" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
|
||||
<End Role="Svedinia" EntitySet="Svedinia" />
|
||||
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
|
||||
<End Role="Recept" EntitySet="Recept" />
|
||||
<End Role="Zakuski" EntitySet="Zakuski" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
</Schema>
|
5
Bar_Five/packages.config
Normal file
5
Bar_Five/packages.config
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework" version="6.2.0" targetFramework="net472" />
|
||||
<package id="EntityFramework.ru" version="6.2.0" targetFramework="net472" />
|
||||
</packages>
|
23
Bar_Five/sysdiagrams.cs
Normal file
23
Bar_Five/sysdiagrams.cs
Normal file
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан по шаблону.
|
||||
//
|
||||
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
|
||||
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Bar_Five
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class sysdiagrams
|
||||
{
|
||||
public string name { get; set; }
|
||||
public int principal_id { get; set; }
|
||||
public int diagram_id { get; set; }
|
||||
public Nullable<int> version { get; set; }
|
||||
public byte[] definition { get; set; }
|
||||
}
|
||||
}
|
5
packages/EntityFramework.6.2.0/Content/net40/App.config.transform
vendored
Normal file
5
packages/EntityFramework.6.2.0/Content/net40/App.config.transform
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
</configSections>
|
||||
</configuration>
|
5
packages/EntityFramework.6.2.0/Content/net40/Web.config.transform
vendored
Normal file
5
packages/EntityFramework.6.2.0/Content/net40/Web.config.transform
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
</configSections>
|
||||
</configuration>
|
BIN
packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg
vendored
Normal file
Binary file not shown.
BIN
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll
vendored
Normal file
Binary file not shown.
1959
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.xml
vendored
Normal file
1959
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll
vendored
Normal file
Binary file not shown.
45898
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.xml
vendored
Normal file
45898
packages/EntityFramework.6.2.0/lib/net40/EntityFramework.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/lib/net40/ru/EntityFramework.resources.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net40/ru/EntityFramework.resources.dll
vendored
Normal file
Binary file not shown.
26659
packages/EntityFramework.6.2.0/lib/net40/ru/EntityFramework.xml
vendored
Normal file
26659
packages/EntityFramework.6.2.0/lib/net40/ru/EntityFramework.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll
vendored
Normal file
Binary file not shown.
2093
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.xml
vendored
Normal file
2093
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll
vendored
Normal file
Binary file not shown.
53236
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.xml
vendored
Normal file
53236
packages/EntityFramework.6.2.0/lib/net45/EntityFramework.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/lib/net45/ru/EntityFramework.resources.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/lib/net45/ru/EntityFramework.resources.dll
vendored
Normal file
Binary file not shown.
26659
packages/EntityFramework.6.2.0/lib/net45/ru/EntityFramework.xml
vendored
Normal file
26659
packages/EntityFramework.6.2.0/lib/net45/ru/EntityFramework.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll
vendored
Normal file
Binary file not shown.
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll
vendored
Normal file
Binary file not shown.
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.psd1
vendored
Normal file
BIN
packages/EntityFramework.6.2.0/tools/EntityFramework.psd1
vendored
Normal file
Binary file not shown.
1176
packages/EntityFramework.6.2.0/tools/EntityFramework.psm1
vendored
Normal file
1176
packages/EntityFramework.6.2.0/tools/EntityFramework.psm1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
48
packages/EntityFramework.6.2.0/tools/about_EntityFramework.help.txt
vendored
Normal file
48
packages/EntityFramework.6.2.0/tools/about_EntityFramework.help.txt
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
TOPIC
|
||||
about_EntityFramework
|
||||
|
||||
SHORT DESCRIPTION
|
||||
Provides information about Entity Framework commands.
|
||||
|
||||
LONG DESCRIPTION
|
||||
This topic describes the Entity Framework commands. Entity Framework is
|
||||
Microsoft's recommended data access technology for new applications.
|
||||
|
||||
The following Entity Framework cmdlets are used with Entity Framework
|
||||
Migrations.
|
||||
|
||||
Cmdlet Description
|
||||
----------------- ---------------------------------------------------
|
||||
Enable-Migrations Enables Code First Migrations in a project.
|
||||
|
||||
Add-Migration Scaffolds a migration script for any pending model
|
||||
changes.
|
||||
|
||||
Update-Database Applies any pending migrations to the database.
|
||||
|
||||
Get-Migrations Displays the migrations that have been applied to
|
||||
the target database.
|
||||
|
||||
The following Entity Framework cmdlets are used by NuGet packages that
|
||||
install Entity Framework providers. These commands are not usually used as
|
||||
part of normal application development.
|
||||
|
||||
Cmdlet Description
|
||||
------------------------------ ---------------------------------------
|
||||
Add-EFProvider Adds or updates an Entity Framework
|
||||
provider entry in the project config
|
||||
file.
|
||||
|
||||
Add-EFDefaultConnectionFactory Adds or updates an Entity Framework
|
||||
default connection factory in the
|
||||
project config file.
|
||||
|
||||
Initialize-EFConfiguration Initializes the Entity Framework
|
||||
section in the project config file and
|
||||
sets defaults.
|
||||
|
||||
SEE ALSO
|
||||
Enable-Migrations
|
||||
Add-Migration
|
||||
Update-Database
|
||||
Get-Migrations
|
155
packages/EntityFramework.6.2.0/tools/init.ps1
vendored
Normal file
155
packages/EntityFramework.6.2.0/tools/init.ps1
vendored
Normal file
@ -0,0 +1,155 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
|
||||
{
|
||||
Remove-Module EntityFramework
|
||||
}
|
||||
|
||||
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
|
||||
|
||||
# SIG # Begin signature block
|
||||
# MIIa3gYJKoZIhvcNAQcCoIIazzCCGssCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
|
||||
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
|
||||
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUjXj4E03IfImYfKMB4CA3DfY0
|
||||
# KZmgghWAMIIEwjCCA6qgAwIBAgITMwAAAMDeLD0HlORJeQAAAAAAwDANBgkqhkiG
|
||||
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
|
||||
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
|
||||
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTYwOTA3MTc1ODUw
|
||||
# WhcNMTgwOTA3MTc1ODUwWjCBsjELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp
|
||||
# bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw
|
||||
# b3JhdGlvbjEMMAoGA1UECxMDQU9DMScwJQYDVQQLEx5uQ2lwaGVyIERTRSBFU046
|
||||
# N0FCNS0yREYyLURBM0YxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1wIFNl
|
||||
# cnZpY2UwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDoiKVSfklVAB4E
|
||||
# Oc9+r95kl32muXNITYcTbaRtuJl+MQzEnD0eU2JUXx2mI06ONnTfFW39ZQPF1pvU
|
||||
# WkHBrS6m8oKy7Em4Ol91RJ5Knwy1VvY2Tawqh+VxwdARRgOeFtFm0S+Pa+BrXtVU
|
||||
# hTtGl0BGMsKGEQKdDNGJD259Iq47qPLw3CmllE3/YFw1GGoJ9C3ry+I7ntxIjJYB
|
||||
# LXA122vw93OOD/zWFh1SVq2AejPxcjKtHH2hjoeTKwkFeMNtIekrUSvhbuCGxW5r
|
||||
# 54KW0Yus4o8392l9Vz8lSEn2j/TgPTqD6EZlzkpw54VSwede/vyqgZIrRbat0bAh
|
||||
# b8doY8vDAgMBAAGjggEJMIIBBTAdBgNVHQ4EFgQUFf5K2jOJ0xmF1WRZxNxTQRBP
|
||||
# tzUwHwYDVR0jBBgwFoAUIzT42VJGcArtQPt2+7MrsMM1sw8wVAYDVR0fBE0wSzBJ
|
||||
# oEegRYZDaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwvcHJvZHVjdHMv
|
||||
# TWljcm9zb2Z0VGltZVN0YW1wUENBLmNybDBYBggrBgEFBQcBAQRMMEowSAYIKwYB
|
||||
# BQUHMAKGPGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljcm9z
|
||||
# b2Z0VGltZVN0YW1wUENBLmNydDATBgNVHSUEDDAKBggrBgEFBQcDCDANBgkqhkiG
|
||||
# 9w0BAQUFAAOCAQEAGeJAuzJMR+kovMi8RK/LtfrKazWlR5Lx02hM9GFmMk1zWCSc
|
||||
# pfVY6xqfzWFllCFHBtOaJZqLiV97jfNCLpG0PULz24CWSkG7jJ+mZaCSicZ7ZC3b
|
||||
# WDh1zpc54llYVyyTkRVYx/mtc9GujqbS8CBZgjaT/JsECnvGAPUcLYuSGt53CU1b
|
||||
# UuiNwuzAhai4glcYyq3/7qMmmAtbnbCZhR5ySoMy7BwdzN70drLtafCJQncfAHXV
|
||||
# O5r6SX4U/2J2zvWhA8lqhZu9SRulFGRvf81VTf+k5rJ2TjL6dYtSchooJ5YVvUk6
|
||||
# i7bfV0VBN8xpaUhk8jbBnxhDPKIvDvnZlhPuJjCCBOswggPToAMCAQICEzMAAAF4
|
||||
# JVq1zSPGX5UAAQAAAXgwDQYJKoZIhvcNAQEFBQAweTELMAkGA1UEBhMCVVMxEzAR
|
||||
# BgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1p
|
||||
# Y3Jvc29mdCBDb3Jwb3JhdGlvbjEjMCEGA1UEAxMaTWljcm9zb2Z0IENvZGUgU2ln
|
||||
# bmluZyBQQ0EwHhcNMTcwODExMjAxMTE1WhcNMTgwODExMjAxMTE1WjCBgjELMAkG
|
||||
# A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx
|
||||
# HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEMMAoGA1UECxMDQU9DMR4w
|
||||
# HAYDVQQDExVNaWNyb3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUA
|
||||
# A4IBDwAwggEKAoIBAQCZbh1TVaudsrIbXUPPB9c8S+E+dKSbskHKYlG6SGTH8jhT
|
||||
# hpuvGiAO87F2b9GHVN+DvszaMkGy/xQgHaGEJLfpnb3kpakic7E0bjDHdG4KnHRb
|
||||
# no/wfUkGLfS79o+cw//RY8Ck6yE+0czDBcxp0Gbw5JyGP+KFqvzRR/3Tv3nt/5x0
|
||||
# 5ZnEOHYP+eDVikDvn/DH+oxxtiCfX3tkvtm/yX4eOb47YdmYKQjCgz2+Nil/lupY
|
||||
# vU0QFIjvke3jshqQINDng/vO9ys2qA0ex/q5hlLKQTST99dGoM86Ge6F723ReToq
|
||||
# KnGLN8kiCG7uNapOAIQrpCHZq96CVumiaA5ZvxU9AgMBAAGjggFgMIIBXDATBgNV
|
||||
# HSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUjuhtD3FD7tk/RKloJFX05cpgLjcw
|
||||
# UQYDVR0RBEowSKRGMEQxDDAKBgNVBAsTA0FPQzE0MDIGA1UEBRMrMjI5ODAzKzFh
|
||||
# YmY5ZTVmLWNlZDAtNDJlNi1hNjVkLWQ5MzUwOTU5ZmUwZTAfBgNVHSMEGDAWgBTL
|
||||
# EejK0rQWWAHJNy4zFha5TJoKHzBWBgNVHR8ETzBNMEugSaBHhkVodHRwOi8vY3Js
|
||||
# Lm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNDb2RTaWdQQ0FfMDgt
|
||||
# MzEtMjAxMC5jcmwwWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUFBzAChj5odHRwOi8v
|
||||
# d3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY0NvZFNpZ1BDQV8wOC0zMS0y
|
||||
# MDEwLmNydDANBgkqhkiG9w0BAQUFAAOCAQEAYnG/oHG/xgZYR8NAMHZ/vE9GM0e4
|
||||
# 7YdhuTea2uY7pSGwM707wp8Wan0Fa6evK1PWfcd/XNOh2BpEv5o8RmKDoEsG0ECP
|
||||
# 13Jug7cklfKreBVHQ+Djg43VVFLZpuo7aOAVK6wjlcnpPUtn+SfH9K0aM2FjDKVJ
|
||||
# FW6XFKXBat5R+Zp6uOxWTxpSeMTeDC5zF6IY6ogR1uzU+9EQoRlAvkwX6po+exEL
|
||||
# nMLr4++P+fqOxIU+PODIoB8ijClAqwwKvLlMPa3qlrNHt+LweTMu7lvGC/RA18wU
|
||||
# zzXAeomuZ03blUw+bkOiVgWOk4S0RN7EnW7zjJV8gd/+G2dbToUi1cB/fTCCBbww
|
||||
# ggOkoAMCAQICCmEzJhoAAAAAADEwDQYJKoZIhvcNAQEFBQAwXzETMBEGCgmSJomT
|
||||
# 8ixkARkWA2NvbTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEtMCsGA1UEAxMk
|
||||
# TWljcm9zb2Z0IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4XDTEwMDgzMTIy
|
||||
# MTkzMloXDTIwMDgzMTIyMjkzMloweTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh
|
||||
# c2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBD
|
||||
# b3Jwb3JhdGlvbjEjMCEGA1UEAxMaTWljcm9zb2Z0IENvZGUgU2lnbmluZyBQQ0Ew
|
||||
# ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCycllcGTBkvx2aYCAgQpl2
|
||||
# U2w+G9ZvzMvx6mv+lxYQ4N86dIMaty+gMuz/3sJCTiPVcgDbNVcKicquIEn08Gis
|
||||
# TUuNpb15S3GbRwfa/SXfnXWIz6pzRH/XgdvzvfI2pMlcRdyvrT3gKGiXGqelcnNW
|
||||
# 8ReU5P01lHKg1nZfHndFg4U4FtBzWwW6Z1KNpbJpL9oZC/6SdCnidi9U3RQwWfjS
|
||||
# jWL9y8lfRjFQuScT5EAwz3IpECgixzdOPaAyPZDNoTgGhVxOVoIoKgUyt0vXT2Pn
|
||||
# 0i1i8UU956wIAPZGoZ7RW4wmU+h6qkryRs83PDietHdcpReejcsRj1Y8wawJXwPT
|
||||
# AgMBAAGjggFeMIIBWjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTLEejK0rQW
|
||||
# WAHJNy4zFha5TJoKHzALBgNVHQ8EBAMCAYYwEgYJKwYBBAGCNxUBBAUCAwEAATAj
|
||||
# BgkrBgEEAYI3FQIEFgQU/dExTtMmipXhmGA7qDFvpjy82C0wGQYJKwYBBAGCNxQC
|
||||
# BAweCgBTAHUAYgBDAEEwHwYDVR0jBBgwFoAUDqyCYEBWJ5flJRP8KuEKU5VZ5KQw
|
||||
# UAYDVR0fBEkwRzBFoEOgQYY/aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9j
|
||||
# cmwvcHJvZHVjdHMvbWljcm9zb2Z0cm9vdGNlcnQuY3JsMFQGCCsGAQUFBwEBBEgw
|
||||
# RjBEBggrBgEFBQcwAoY4aHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0
|
||||
# cy9NaWNyb3NvZnRSb290Q2VydC5jcnQwDQYJKoZIhvcNAQEFBQADggIBAFk5Pn8m
|
||||
# Rq/rb0CxMrVq6w4vbqhJ9+tfde1MOy3XQ60L/svpLTGjI8x8UJiAIV2sPS9MuqKo
|
||||
# VpzjcLu4tPh5tUly9z7qQX/K4QwXaculnCAt+gtQxFbNLeNK0rxw56gNogOlVuC4
|
||||
# iktX8pVCnPHz7+7jhh80PLhWmvBTI4UqpIIck+KUBx3y4k74jKHK6BOlkU7IG9KP
|
||||
# cpUqcW2bGvgc8FPWZ8wi/1wdzaKMvSeyeWNWRKJRzfnpo1hW3ZsCRUQvX/TartSC
|
||||
# Mm78pJUT5Otp56miLL7IKxAOZY6Z2/Wi+hImCWU4lPF6H0q70eFW6NB4lhhcyTUW
|
||||
# X92THUmOLb6tNEQc7hAVGgBd3TVbIc6YxwnuhQ6MT20OE049fClInHLR82zKwexw
|
||||
# o1eSV32UjaAbSANa98+jZwp0pTbtLS8XyOZyNxL0b7E8Z4L5UrKNMxZlHg6K3RDe
|
||||
# ZPRvzkbU0xfpecQEtNP7LN8fip6sCvsTJ0Ct5PnhqX9GuwdgR2VgQE6wQuxO7bN2
|
||||
# edgKNAltHIAxH+IOVN3lofvlRxCtZJj/UBYufL8FIXrilUEnacOTj5XJjdibIa4N
|
||||
# XJzwoq6GaIMMai27dmsAHZat8hZ79haDJLmIz2qoRzEvmtzjcT3XAH5iR9HOiMm4
|
||||
# GPoOco3Boz2vAkBq/2mbluIQqBC0N1AI1sM9MIIGBzCCA++gAwIBAgIKYRZoNAAA
|
||||
# AAAAHDANBgkqhkiG9w0BAQUFADBfMRMwEQYKCZImiZPyLGQBGRYDY29tMRkwFwYK
|
||||
# CZImiZPyLGQBGRYJbWljcm9zb2Z0MS0wKwYDVQQDEyRNaWNyb3NvZnQgUm9vdCBD
|
||||
# ZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDcwNDAzMTI1MzA5WhcNMjEwNDAzMTMw
|
||||
# MzA5WjB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UE
|
||||
# BxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEwHwYD
|
||||
# VQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwggEiMA0GCSqGSIb3DQEBAQUA
|
||||
# A4IBDwAwggEKAoIBAQCfoWyx39tIkip8ay4Z4b3i48WZUSNQrc7dGE4kD+7Rp9FM
|
||||
# rXQwIBHrB9VUlRVJlBtCkq6YXDAm2gBr6Hu97IkHD/cOBJjwicwfyzMkh53y9Gcc
|
||||
# LPx754gd6udOo6HBI1PKjfpFzwnQXq/QsEIEovmmbJNn1yjcRlOwhtDlKEYuJ6yG
|
||||
# T1VSDOQDLPtqkJAwbofzWTCd+n7Wl7PoIZd++NIT8wi3U21StEWQn0gASkdmEScp
|
||||
# ZqiX5NMGgUqi+YSnEUcUCYKfhO1VeP4Bmh1QCIUAEDBG7bfeI0a7xC1Un68eeEEx
|
||||
# d8yb3zuDk6FhArUdDbH895uyAc4iS1T/+QXDwiALAgMBAAGjggGrMIIBpzAPBgNV
|
||||
# HRMBAf8EBTADAQH/MB0GA1UdDgQWBBQjNPjZUkZwCu1A+3b7syuwwzWzDzALBgNV
|
||||
# HQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQAwgZgGA1UdIwSBkDCBjYAUDqyCYEBW
|
||||
# J5flJRP8KuEKU5VZ5KShY6RhMF8xEzARBgoJkiaJk/IsZAEZFgNjb20xGTAXBgoJ
|
||||
# kiaJk/IsZAEZFgltaWNyb3NvZnQxLTArBgNVBAMTJE1pY3Jvc29mdCBSb290IENl
|
||||
# cnRpZmljYXRlIEF1dGhvcml0eYIQea0WoUqgpa1Mc1j0BxMuZTBQBgNVHR8ESTBH
|
||||
# MEWgQ6BBhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0
|
||||
# cy9taWNyb3NvZnRyb290Y2VydC5jcmwwVAYIKwYBBQUHAQEESDBGMEQGCCsGAQUF
|
||||
# BzAChjhodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY3Jvc29m
|
||||
# dFJvb3RDZXJ0LmNydDATBgNVHSUEDDAKBggrBgEFBQcDCDANBgkqhkiG9w0BAQUF
|
||||
# AAOCAgEAEJeKw1wDRDbd6bStd9vOeVFNAbEudHFbbQwTq86+e4+4LtQSooxtYrhX
|
||||
# AstOIBNQmd16QOJXu69YmhzhHQGGrLt48ovQ7DsB7uK+jwoFyI1I4vBTFd1Pq5Lk
|
||||
# 541q1YDB5pTyBi+FA+mRKiQicPv2/OR4mS4N9wficLwYTp2OawpylbihOZxnLcVR
|
||||
# DupiXD8WmIsgP+IHGjL5zDFKdjE9K3ILyOpwPf+FChPfwgphjvDXuBfrTot/xTUr
|
||||
# XqO/67x9C0J71FNyIe4wyrt4ZVxbARcKFA7S2hSY9Ty5ZlizLS/n+YWGzFFW6J1w
|
||||
# lGysOUzU9nm/qhh6YinvopspNAZ3GmLJPR5tH4LwC8csu89Ds+X57H2146SodDW4
|
||||
# TsVxIxImdgs8UoxxWkZDFLyzs7BNZ8ifQv+AeSGAnhUwZuhCEl4ayJ4iIdBD6Svp
|
||||
# u/RIzCzU2DKATCYqSCRfWupW76bemZ3KOm+9gSd0BhHudiG/m4LBJ1S2sWo9iaF2
|
||||
# YbRuoROmv6pH8BJv/YoybLL+31HIjCPJZr2dHYcSZAI9La9Zj7jkIeW1sMpjtHhU
|
||||
# BdRBLlCslLCleKuzoJZ1GtmShxN1Ii8yqAhuoFuMJb+g74TKIdbrHk/Jmu5J4PcB
|
||||
# ZW+JC33Iacjmbuqnl84xKf8OxVtc2E0bodj6L54/LlUWa8kTo/0xggTIMIIExAIB
|
||||
# ATCBkDB5MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UE
|
||||
# BxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSMwIQYD
|
||||
# VQQDExpNaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBDQQITMwAAAXglWrXNI8ZflQAB
|
||||
# AAABeDAJBgUrDgMCGgUAoIHhMBkGCSqGSIb3DQEJAzEMBgorBgEEAYI3AgEEMBwG
|
||||
# CisGAQQBgjcCAQsxDjAMBgorBgEEAYI3AgEVMCMGCSqGSIb3DQEJBDEWBBTq02RG
|
||||
# y+pjEYntEMXja7SF8TbmOjCBgAYKKwYBBAGCNwIBDDFyMHCgUoBQAEUAbgB0AGkA
|
||||
# dAB5ACAARgByAGEAbQBlAHcAbwByAGsAIABUAG8AbwBsAHMAIABmAG8AcgAgAFYA
|
||||
# aQBzAHUAYQBsACAAUwB0AHUAZABpAG+hGoAYaHR0cDovL21zZG4uY29tL2RhdGEv
|
||||
# ZWYgMA0GCSqGSIb3DQEBAQUABIIBAHQSKzEL3TItnbRhSBIYMFwe3udOxpA/S2dB
|
||||
# gUgxV1NkH+j0UbOnslGkt8gDBIlFre+2F+b7U4dnBiOjhizMyeAKSHYGdHqSoDJ0
|
||||
# lM4D5tuTSnoJ8FZtem/IjyBgKCmFMv05/ivF2StQ/nBhLj0QYcF4S9NZXj6JKFNa
|
||||
# WZJjFRaMRbkyvyD+p22Y1FyvcZPetZfoBYXs7GoaDdLvwrvfjKFwv4YGZ40WIGDX
|
||||
# 566IZCmnpMNJ2bfj8rNZUQBi8SZocFfAPw+9r/FLz51UTrKB0YRCBTXeWMYOJRpt
|
||||
# 6is5bbSLYJz7Y/BvoLy1Lt+BaqJEntP2lB3RvSsEm+BZOtDCcAahggIoMIICJAYJ
|
||||
# KoZIhvcNAQkGMYICFTCCAhECAQEwgY4wdzELMAkGA1UEBhMCVVMxEzARBgNVBAgT
|
||||
# Cldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m
|
||||
# dCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENB
|
||||
# AhMzAAAAwN4sPQeU5El5AAAAAADAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMx
|
||||
# CwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNzEwMjMyMDEzNDVaMCMGCSqG
|
||||
# SIb3DQEJBDEWBBSn3QkcYO648MmwXthSXKh2NV8R9TANBgkqhkiG9w0BAQUFAASC
|
||||
# AQCnYTuQPUR6cHCGZStrauV4FQS+OC0dCo7D+mHETHYnDfgRKAloSQFBSqCm4C2+
|
||||
# GH20vmak1LgnN48Gc7YBQ4tXyW0HXo8yfCJDBeaF1tYGGLIMPthq3Pqu0+mqrJ2C
|
||||
# rklJw6+cKsF9+ESo9hoTCf3qztNjbEtaXrsakX+dALcMzJ4ism2oh5bUHd6CxWfF
|
||||
# Z/xLn4VQxzmZUSPbnhkIAoPwauAswHi1jgqo7Qd0HSIKHGNex7SOGgBfTWD4gCe4
|
||||
# IzGJlFFmCT6pFsjvreEnaQLNBv+yOj9P1Pf4MDVrNQn0OLeWSxfpf+XfgECLi0LS
|
||||
# QMxcy5Q0PezBaxQKzBTp39mT
|
||||
# SIG # End signature block
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user