Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .vs/ConferenceRegistration/v14/.suo
Binary file not shown.
52 changes: 52 additions & 0 deletions ConfReg.DataAcess/ConfReg.DataAcess.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,35 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ConfRegDb.cs" />
<Compile Include="Migrations\201702201702429_InitialCreate.cs" />
<Compile Include="Migrations\201702201702429_InitialCreate.Designer.cs">
<DependentUpon>201702201702429_InitialCreate.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201702231744161_Validation1.cs" />
<Compile Include="Migrations\201702231744161_Validation1.Designer.cs">
<DependentUpon>201702231744161_Validation1.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201703032150119_TestMaxAttr.cs" />
<Compile Include="Migrations\201703032150119_TestMaxAttr.Designer.cs">
<DependentUpon>201703032150119_TestMaxAttr.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201703032156332_MaxWordsAttrFinal.cs" />
<Compile Include="Migrations\201703032156332_MaxWordsAttrFinal.Designer.cs">
<DependentUpon>201703032156332_MaxWordsAttrFinal.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201703032202437_Test2.cs" />
<Compile Include="Migrations\201703032202437_Test2.Designer.cs">
<DependentUpon>201703032202437_Test2.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201703032221016_ContainsCharAttr.cs" />
<Compile Include="Migrations\201703032221016_ContainsCharAttr.Designer.cs">
<DependentUpon>201703032221016_ContainsCharAttr.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201703041152036_DegreeProp.cs" />
<Compile Include="Migrations\201703041152036_DegreeProp.Designer.cs">
<DependentUpon>201703041152036_DegreeProp.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand All @@ -62,6 +91,29 @@
<Name>ConfReg.Domain</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\201702201702429_InitialCreate.resx">
<DependentUpon>201702201702429_InitialCreate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201702231744161_Validation1.resx">
<DependentUpon>201702231744161_Validation1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201703032150119_TestMaxAttr.resx">
<DependentUpon>201703032150119_TestMaxAttr.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201703032156332_MaxWordsAttrFinal.resx">
<DependentUpon>201703032156332_MaxWordsAttrFinal.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201703032202437_Test2.resx">
<DependentUpon>201703032202437_Test2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201703032221016_ContainsCharAttr.resx">
<DependentUpon>201703032221016_ContainsCharAttr.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201703041152036_DegreeProp.resx">
<DependentUpon>201703041152036_DegreeProp.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions ConfReg.DataAcess/Migrations/201702201702429_InitialCreate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
namespace ConfReg.DataAcess.Migrations
{
using System;
using System.Data.Entity.Migrations;

public partial class InitialCreate : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.Participants",
c => new
{
Id = c.Int(nullable: false, identity: true),
Degree = c.Int(nullable: false),
Name = c.String(),
Surname = c.String(),
Institution = c.String(),
Email = c.String(),
PhoneNumber = c.String(),
AnnName = c.String(),
AnnAuthorsAndAff = c.String(),
AnnSummary = c.String(),
RoomType = c.Int(nullable: false),
AccPerson = c.Int(nullable: false),
InvoiceReq = c.Int(nullable: false),
})
.PrimaryKey(t => t.Id);

}

public override void Down()
{
DropTable("dbo.Participants");
}
}
}
126 changes: 126 additions & 0 deletions ConfReg.DataAcess/Migrations/201702201702429_InitialCreate.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Target" xml:space="preserve">
<value>H4sIAAAAAAAEAM1ZzW7jNhC+F+g7CDq1wK5lOz20gb0LN04Ko+vEjbLbMy2NbaIUqSWpIH62HvpIfYUOrT+K/olsJ9kiQGCRw29mPlLDmdG/f/8z+PiUMO8RpKKCD/1ep+t7wCMRU74c+plevP/Z//jh++8G13Hy5H0p5S6MHK7kauivtE4vg0BFK0iI6iQ0kkKJhe5EIglILIJ+t/tL0OsFgBA+Ynne4D7jmiawecDHK8EjSHVG2FTEwFQxjjPhBtW7JQmolEQw9FF2cQ/LzphoMopAKd8bMUrQkBDYwvcI50ITjWZeflYQain4MkxxgLCHdQootyBMQWH+ZS3e1pNu33gS1AtLqChTWiRHAvYuCmoCd/lJBPsVdUjeNZKs18brDYFDf0akphFNCddIm6vw8opJI2xxjNOUd+xl77zm5LvqUODZMX8okDGdSRhyyLQk7J03y+aMRr/D+kH8BXzIM8ZsO9FSnGsM4NBMihSkXt/DorB+Evte0FwXuAurZdaa3KcJ1xd937tF5WTOoDoGlv+hFhJ+Aw6SaIhnRGuQ3GDAhsgt7Y6uMSwlQKnPnMZOObSl9TCS+V/haInvou9NydMn4Eu9Gvr40/du6BPE5UiB+plTfHVxkZbZs0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EenuC7QqlCba2O5rpDyHkgboIK+MaTAzWXzAEnKEEzd8ZA8wim2YdH8CZYkWpfpwn6Q5zeiSftgTMlSkkQVGPV68/EvMF//PvwH9bvC8y8cAAA=</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions ConfReg.DataAcess/Migrations/201702231744161_Validation1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace ConfReg.DataAcess.Migrations
{
using System;
using System.Data.Entity.Migrations;

public partial class Validation1 : DbMigration
{
public override void Up()
{
AlterColumn("dbo.Participants", "Name", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "Surname", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "Institution", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "Email", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "PhoneNumber", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "AnnName", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "AnnAuthorsAndAff", c => c.String(nullable: false));
AlterColumn("dbo.Participants", "AnnSummary", c => c.String(nullable: false, maxLength: 400));
AlterColumn("dbo.Participants", "InvoiceReq", c => c.String());
}

public override void Down()
{
AlterColumn("dbo.Participants", "InvoiceReq", c => c.Int(nullable: false));
AlterColumn("dbo.Participants", "AnnSummary", c => c.String());
AlterColumn("dbo.Participants", "AnnAuthorsAndAff", c => c.String());
AlterColumn("dbo.Participants", "AnnName", c => c.String());
AlterColumn("dbo.Participants", "PhoneNumber", c => c.String());
AlterColumn("dbo.Participants", "Email", c => c.String());
AlterColumn("dbo.Participants", "Institution", c => c.String());
AlterColumn("dbo.Participants", "Surname", c => c.String());
AlterColumn("dbo.Participants", "Name", c => c.String());
}
}
}
Loading