This commit is contained in:
yhhno 2015-12-01 15:19:38 +08:00
Родитель 86d86f899b
Коммит aa80aa92e0
68 изменённых файлов: 552 добавлений и 3 удалений

Просмотреть файл

@ -6,6 +6,10 @@
</configSections>
<connectionStrings>
<add name="Default" connectionString="Server=localhost; Database=SimpleTaskSystemDb; Trusted_Connection=True;" providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />

Просмотреть файл

@ -16,5 +16,7 @@ namespace SimpleTaskSystem.People
/// NOTE: NHibernate requires that all members of an entity must be virtual (for proxying purposes)!
/// </summary>
public virtual string Name { get; set; }
public virtual string Phone { get; set; }
public virtual string Sex { get; set; }
}
}

Просмотреть файл

@ -24,6 +24,7 @@ namespace SimpleTaskSystem.Tasks
/// A reference (navigation property) to assigned <see cref="Person"/> for this task.
/// We declare <see cref="ForeignKeyAttribute"/> for EntityFramework here. No need for NHibernate.
/// </summary>
[ForeignKey("AssignedPersonId")]
public virtual Person AssignedPerson { get; set; }

Просмотреть файл

@ -6,7 +6,7 @@ namespace SimpleTaskSystem.Migrations
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.1-30610")]
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class InitialCreate : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate));

Просмотреть файл

@ -0,0 +1,29 @@
// <auto-generated />
namespace SimpleTaskSystem.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class InitialCreate1 : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate1));
string IMigrationMetadata.Id
{
get { return "201511170849012_InitialCreate1"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

Просмотреть файл

@ -0,0 +1,20 @@
namespace SimpleTaskSystem.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class InitialCreate1 : DbMigration
{
public override void Up()
{
AddColumn("dbo.StsPeople", "Phone", c => c.String());
AddColumn("dbo.StsPeople", "Sex", c => c.String());
}
public override void Down()
{
DropColumn("dbo.StsPeople", "Phone");
DropColumn("dbo.StsPeople", "Sex");
}
}
}

Просмотреть файл

@ -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>H4sIAAAAAAAEAN1Z227jNhB9L9B/EPTUFlnLyRZFG9i7yDpJYXRzQZRd9G1BS2OHWIpUSSpro+iX9aGf1F/oUDdLpORLbmiLAIFNzoUzc2Y4Q//951+jt8uEefcgFRV87B8Ohr4HPBIx5Yuxn+n5qx/9t2++/mp0FidL72NF99rQISdXY/9O6/Q4CFR0BwlRg4RGUigx14NIJAGJRXA0HP4UHB4GgCJ8lOV5o5uMa5pA/gW/TgSPINUZYRciBqbKddwJc6neJUlApSSCsR/SJGVwS9TncKU0JIMzFKVX5xJJvgj52fdOGCV4rhDY3PcI50ITjac+/qAg1FLwRZjiAmG3qxSQbk6YgtKa4zX5roYNj4xhwZqxEhVlSotkT4GHr0tPBTb7g/zt155EXxaOMlbn/hz71xhOI9hWdTxh0pB1OPsaBC4MCs4Dz9mfCAkHNU4QTubvwJtkTGcSxhwyLQk78K6zGaPRL7C6FZ+Bj3nGWPOseFrcay3g0rUUKUi9uoF5acE09r2gzRfYjDVbg6ewbsr16yPfu0TlZMaghkLDE6FGg34GDpJoiK+J1iC5kQG5Mx3tli7zv9KG2MOk8r0LsnwPfKHvxj5+9L1zuoS4WilP8IFTzEFk0jKDbUqu7wR/ai2jYI2WjRgysd8LQeajyv//D+Dzw/fPCp8TpeiCI2Oebg5wNzOfgookTYva8cwQnEjIDb6la7yfosnFd8dDm4WF6Lw1nrGK52gpV7fJuiT3dJGfZaMvfe8GWE6m7m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lBPOVXmU4zjSZDMmOtN3GTD5v05zN4+8yjq7yaq6cwAY9JTfW+4u8yytYPkOcdhbdHhEm08u40sdTmDl2sakmXzlzXJ6h0X10fbgEHKhSmrnhIGq+pe5ztg4L3sCDRqupW+4VsD0Tb7aNTShY426lSxpofvyKG42T55h/XJG0Kfh4AAA==</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>

Просмотреть файл

@ -0,0 +1,29 @@
// <auto-generated />
namespace SimpleTaskSystem.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class InitialCreate2 : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate2));
string IMigrationMetadata.Id
{
get { return "201511170854564_InitialCreate2"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

Просмотреть файл

@ -0,0 +1,16 @@
namespace SimpleTaskSystem.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class InitialCreate2 : DbMigration
{
public override void Up()
{
}
public override void Down()
{
}
}
}

Просмотреть файл

@ -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>H4sIAAAAAAAEAN1Z227jNhB9L9B/EPTUFlnLyRZFG9i7yDpJYXRzQZRd9G1BS2OHWIpUSSpro+iX9aGf1F/oUDdLpORLbmiLAIFNzoUzc2Y4Q//951+jt8uEefcgFRV87B8Ohr4HPBIx5Yuxn+n5qx/9t2++/mp0FidL72NF99rQISdXY/9O6/Q4CFR0BwlRg4RGUigx14NIJAGJRXA0HP4UHB4GgCJ8lOV5o5uMa5pA/gW/TgSPINUZYRciBqbKddwJc6neJUlApSSCsR/SJGVwS9TncKU0JIMzFKVX5xJJvgj52fdOGCV4rhDY3PcI50ITjac+/qAg1FLwRZjiAm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sL2zu8SyCW2KKpdeGJROfbZJau11nbbq8aisjdufmpxiWZD4HjrnnsZ5oSzQbAgG4W9swijauya4IJzOQemiXfaPhodH1vvUv+etKFAqZjs9GL34pE2NT7fO0nuOmc23GX5PZHRH5DcJWX7blLT3+8sekvZ7Y3lxp8/o4ln83veokStz+uYp9vHLsf97znzsTX/9ZPMfeFcSU+3YG3p/7Bu6jjeSR0Gh6x0kRrfpR7+DaMpXuYc2CumD1OOm4ar5f9iI2u7ZHzA/P2jG7W0Xn2We/a9Nru4YsG0aLcLdO40WNyOCfSYwwgU+Q616xq+uYbV3Vu0R3TkivuAk23ZJc9LYNrY6k+7zjKdum4MwavzuhkDOTa1EmF/hOEQtANU0Uz4XFaKtE1UkVvW6AE2w9JETqemcRBq3I0Dnmvfn8iHvLJlBPOVXmU4zjSZDMmOtN3GTD5v05zN4+8yjq7yaq6cwAY9JTfW+4u8yytYPkOcdhbdHhEm08u40sdTmDl2sakmXzlzXJ6h0X10fbgEHKhSmrnhIGq+pe5ztg4L3sCDRqupW+4VsD0Tb7aNTShY426lSxpofvyKG42T55h/XJG0Kfh4AAA==</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>

Просмотреть файл

@ -0,0 +1,29 @@
// <auto-generated />
namespace SimpleTaskSystem.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class InitialCreate3 : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate3));
string IMigrationMetadata.Id
{
get { return "201511170856406_InitialCreate3"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

Просмотреть файл

@ -0,0 +1,18 @@
namespace SimpleTaskSystem.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class InitialCreate3 : DbMigration
{
public override void Up()
{
AddColumn("dbo.StsPeople", "Sex", c => c.String());
}
public override void Down()
{
DropColumn("dbo.StsPeople", "Sex");
}
}
}

Просмотреть файл

@ -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>H4sIAAAAAAAEAN1Z227jNhB9L9B/EPTUFlnLyRZFG9i72DpJYXRzQZRd9G1BS2OHWIpUSSq1UfTL+tBP6i90qJslUvIliYO2CBDY5FzImTNDHvrvP/8avV0mzHsAqajgY/94MPQ94JGIKV+M/UzPX33vv33z5Rej8zhZeh8ruddGDjW5Gvv3WqenQaCie0iIGiQ0kkKJuR5EIglILIKT4fCH4Pg4ADThoy3PG91mXNME8i/4dSJ4BKnOCLsUMTBVjuNMmFv1rkgCKiURjP2QJimDO6I+hyulIRmcoym9upAo8puQn33vHaME1xUCm/se4VxoonHVpx8UhFoKvghTHCDsbpUCys0JU1Du5nQtvuvGhidmY8FasTIVZUqLZE+Dx6/LSAW2+qPi7deRxFgWgTK7zuM59m8wncaw7ep0wqQR6wj2DQgcGBSaR54zPxESjmqcIJzM35E3yZjOJIw5ZFoSduTdZDNGo59hdSc+Ax/zjLHmWnG1ONcawKEbKVKQenUL83IH09j3grZeYCvWag2dYndTrl+f+N4VOiczBjUUGpEINW7oJ+AgiYb4hmgNkhsbkAfT8W75Mv8rb4g9LCrfuyTL98AX+n7s40ffu6BLiKuRcgUfOMUaRCUtM9jm5OZe8MN7CWH5zD5GwRqRG3Fq8LUXSs1Hlf//H0D0u28PCtF3StEFR8W8pJ3i2Kx8BiqSNC3604EBOJGQb/iOrmvqDLdcfHcitAXNGLx1zeBJkaOlHN1m64o80EW+lo2x9L1bYLmYuqdpw80nW+5CiuRWsBLq1vSnUGQyMosV/TJ3RC5A71pfWWJVV7nxqbpgZLE+Ex9VcrmtZ647REoMkq0QWYX/H1e43nZWLiGZgawyEWn6gDv4SFiGX4+dHLakJ8KsFaunVjhxQ1kErTmIORARzSPTiKWd3bbfcx57O6S6jUusJowS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AA=</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>

Просмотреть файл

@ -106,6 +106,20 @@
<Compile Include="Migrations\201406291022389_InitialCreate.Designer.cs">
<DependentUpon>201406291022389_InitialCreate.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201511170849012_InitialCreate1.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Migrations\201511170849012_InitialCreate1.Designer.cs">
<DependentUpon>201511170849012_InitialCreate1.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201511170854564_InitialCreate2.cs" />
<Compile Include="Migrations\201511170854564_InitialCreate2.Designer.cs">
<DependentUpon>201511170854564_InitialCreate2.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201511170856406_InitialCreate3.cs" />
<Compile Include="Migrations\201511170856406_InitialCreate3.Designer.cs">
<DependentUpon>201511170856406_InitialCreate3.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="SimpleTaskSystemDataModule.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
@ -125,6 +139,15 @@
<EmbeddedResource Include="Migrations\201406291022389_InitialCreate.resx">
<DependentUpon>201406291022389_InitialCreate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201511170849012_InitialCreate1.resx">
<DependentUpon>201511170849012_InitialCreate1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201511170854564_InitialCreate2.resx">
<DependentUpon>201511170854564_InitialCreate2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201511170856406_InitialCreate3.resx">
<DependentUpon>201511170856406_InitialCreate3.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

Просмотреть файл

@ -1,6 +1,6 @@
define(['service!tasksystem/task'],
function (taskService) {
return function () {
var that = this; //an alias of this

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 75 KiB

После

Ширина:  |  Высота:  |  Размер: 75 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 6.1 KiB

После

Ширина:  |  Высота:  |  Размер: 6.1 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 46 KiB

После

Ширина:  |  Высота:  |  Размер: 46 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 58 KiB

После

Ширина:  |  Высота:  |  Размер: 58 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 180 B

После

Ширина:  |  Высота:  |  Размер: 180 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 178 B

После

Ширина:  |  Высота:  |  Размер: 178 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 120 B

После

Ширина:  |  Высота:  |  Размер: 120 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 105 B

После

Ширина:  |  Высота:  |  Размер: 105 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 111 B

После

Ширина:  |  Высота:  |  Размер: 111 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 110 B

После

Ширина:  |  Высота:  |  Размер: 110 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 119 B

После

Ширина:  |  Высота:  |  Размер: 119 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 4.3 KiB

После

Ширина:  |  Высота:  |  Размер: 4.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 4.3 KiB

После

Ширина:  |  Высота:  |  Размер: 4.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 4.3 KiB

После

Ширина:  |  Высота:  |  Размер: 4.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 4.3 KiB

После

Ширина:  |  Высота:  |  Размер: 4.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 4.3 KiB

После

Ширина:  |  Высота:  |  Размер: 4.3 KiB

Просмотреть файл

@ -11,7 +11,7 @@
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<connectionStrings>
<add name="Default" connectionString="Server=localhost; Database=SimpleTaskSystemDb; Trusted_Connection=True;" />
<add name="Default" connectionString="Server=localhost; Database=SimpleTaskSystemDb; Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<globalization culture="auto" uiCulture="auto" />