auto increment ID.

model tables are automatically created.
This commit is contained in:
kay.one
2013-03-24 03:09:32 -07:00
parent aeebae33fd
commit 7603d8e1ba
8 changed files with 35 additions and 6 deletions
@@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.Configuration
public void Setup()
{
Mocker.GetMock<IConfigRepository>().Setup(c => c.All())
.Returns(new List<Config> { new Config { Key = "Key1", Value = "Value1" } });
.Returns(new List<Config> { new Config { Key = "key1", Value = "Value1" } });
}
@@ -150,7 +150,7 @@ namespace NzbDrone.Core.Test.Configuration
if (propertyInfo.PropertyType == typeof(string))
{
value = new Guid().ToString();
value = Guid.NewGuid().ToString();
}
else if (propertyInfo.PropertyType == typeof(int))
{
@@ -5,8 +5,8 @@
<AllowDynamicCodeContractChecking>true</AllowDynamicCodeContractChecking>
<AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
<IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
<RunPreBuildEvents>false</RunPreBuildEvents>
<RunPostBuildEvents>false</RunPostBuildEvents>
<RunPreBuildEvents>true</RunPreBuildEvents>
<RunPostBuildEvents>true</RunPostBuildEvents>
<PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
<InstrumentAssembly>true</InstrumentAssembly>
<PreventSigningOfAssembly>false</PreventSigningOfAssembly>