Skip to content

Commit fb0a756

Browse files
committed
Renaming to SQLite.CodeFirst
1 parent fabe113 commit fb0a756

32 files changed

+56
-62
lines changed
File renamed without changes.

SQLiteEfCodeFirstDbCreator.Console/Entity/IEntity.cs renamed to SQLite.CodeFirst.Console/Entity/IEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace SQLiteEfCodeFirstDbCreator.Console.Entity
1+
namespace SQLite.CodeFirst.Entity
22
{
33
interface IEntity
44
{

SQLiteEfCodeFirstDbCreator.Console/Entity/Player.cs renamed to SQLite.CodeFirst.Console/Entity/Player.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace SQLiteEfCodeFirstDbCreator.Console.Entity
1+
namespace SQLite.CodeFirst.Entity
22
{
33
public class Player : IEntity
44
{

SQLiteEfCodeFirstDbCreator.Console/Entity/Team.cs renamed to SQLite.CodeFirst.Console/Entity/Team.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace SQLiteEfCodeFirstDbCreator.Console.Entity
3+
namespace SQLite.CodeFirst.Entity
44
{
55
public class Team : IEntity
66
{

SQLiteEfCodeFirstDbCreator.Console/Program.cs renamed to SQLite.CodeFirst.Console/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq;
2-
using SQLiteEfCodeFirstDbCreator.Console.Entity;
2+
using SQLite.CodeFirst.Entity;
33

4-
namespace SQLiteEfCodeFirstDbCreator.Console
4+
namespace SQLite.CodeFirst
55
{
66
public static class Program
77
{

SQLiteEfCodeFirstDbCreator.Console/Properties/AssemblyInfo.cs renamed to SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs

File renamed without changes.

SQLiteEfCodeFirstDbCreator.Console/SQLiteEfCodeFirstDbCreator.Console.csproj renamed to SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{DEDABD86-6EA0-4673-A858-A4F71958F51D}</ProjectGuid>
88
<OutputType>Exe</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>SQLiteEfCodeFirstDbCreator.Console</RootNamespace>
11-
<AssemblyName>SQLiteEfCodeFirstDbCreator.Console</AssemblyName>
10+
<RootNamespace>SQLite.CodeFirst</RootNamespace>
11+
<AssemblyName>SQLite.CodeFirst</AssemblyName>
1212
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
@@ -73,9 +73,9 @@
7373
<None Include="packages.config" />
7474
</ItemGroup>
7575
<ItemGroup>
76-
<ProjectReference Include="..\SQLiteEfCodeFirstDbCreator\SQLiteEfCodeFirstDbCreator.csproj">
76+
<ProjectReference Include="..\SQLite.CodeFirst\SQLite.CodeFirst.csproj">
7777
<Project>{50A32FE4-0E13-4213-A373-72523CDF34D9}</Project>
78-
<Name>SQLiteEfCodeFirstDbCreator</Name>
78+
<Name>SQLite.CodeFirst</Name>
7979
</ProjectReference>
8080
</ItemGroup>
8181
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

SQLiteEfCodeFirstDbCreator.Console/TestDbContext.cs renamed to SQLite.CodeFirst.Console/TestDbContext.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System.Data.Entity;
22
using System.Data.Entity.ModelConfiguration.Conventions;
3-
using SQLiteEfCodeFirstDbCreator.Console.Entity;
3+
using SQLite.CodeFirst.Entity;
44

5-
namespace SQLiteEfCodeFirstDbCreator.Console
5+
namespace SQLite.CodeFirst
66
{
77
public class TestDbContext : DbContext
88
{
@@ -39,4 +39,15 @@ private static void ConfigurePlayerEntity(DbModelBuilder modelBuilder)
3939
.WillCascadeOnDelete(true);
4040
}
4141
}
42+
43+
public class TestDbContextInitializer : SqliteContextInitializer<TestDbContext>
44+
{
45+
public TestDbContextInitializer(string connectionString, DbModelBuilder modelBuilder)
46+
: base(connectionString, modelBuilder) { }
47+
48+
protected override void Seed(TestDbContext context)
49+
{
50+
context.Set<Player>().Add(new Player());
51+
}
52+
}
4253
}
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2013
44
VisualStudioVersion = 12.0.31101.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLiteEfCodeFirstDbCreator", "SQLiteEfCodeFirstDbCreator\SQLiteEfCodeFirstDbCreator.csproj", "{50A32FE4-0E13-4213-A373-72523CDF34D9}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite.CodeFirst", "SQLite.CodeFirst\SQLite.CodeFirst.csproj", "{50A32FE4-0E13-4213-A373-72523CDF34D9}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLiteEfCodeFirstDbCreator.Console", "SQLiteEfCodeFirstDbCreator.Console\SQLiteEfCodeFirstDbCreator.Console.csproj", "{DEDABD86-6EA0-4673-A858-A4F71958F51D}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite.CodeFirst.Console", "SQLite.CodeFirst.Console\SQLite.CodeFirst.Console.csproj", "{DEDABD86-6EA0-4673-A858-A4F71958F51D}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01B97A84-5983-45C5-ACF8-168E56DF297C}"
1111
ProjectSection(SolutionItems) = preProject

0 commit comments

Comments
 (0)