diff --git a/Leo.Chimp.sln b/Leo.Chimp.sln index 4d57bea..03222a7 100644 --- a/Leo.Chimp.sln +++ b/Leo.Chimp.sln @@ -5,18 +5,18 @@ VisualStudioVersion = 15.0.28307.705 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp", "src\Leo.Chimp\Leo.Chimp.csproj", "{AE57FE9E-110F-4BBD-AF58-243A37E334C3}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Test", "src\Leo.Chimp.Test\Leo.Chimp.Test.csproj", "{1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leo.Chimp.Example", "src\Leo.Chimp.Example\Leo.Chimp.Example.csproj", "{E911F809-ED33-491F-896D-341EF249303D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leo.Chimp.Domain", "src\Leo.Chimp.Domain\Leo.Chimp.Domain.csproj", "{A1C15DD9-B856-472D-B0DA-BC69750C8736}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A9856CFD-8B10-4C9E-B4B7-E49704894C71}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8DC16EBA-2D9F-473A-820E-5A96C35E44F5}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "example", "example", "{98E27906-6784-4538-9CDA-90FDEA7C83EF}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Example", "example\Leo.Chimp.Example\Leo.Chimp.Example.csproj", "{22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Domain", "example\Leo.Chimp.Domain\Leo.Chimp.Domain.csproj", "{1216801F-2F9A-423D-9460-E3D301496533}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Test", "test\Leo.Chimp.Test\Leo.Chimp.Test.csproj", "{ACAEE484-293F-4F82-B8D6-269A00FDBB57}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,27 +27,27 @@ Global {AE57FE9E-110F-4BBD-AF58-243A37E334C3}.Debug|Any CPU.Build.0 = Debug|Any CPU {AE57FE9E-110F-4BBD-AF58-243A37E334C3}.Release|Any CPU.ActiveCfg = Release|Any CPU {AE57FE9E-110F-4BBD-AF58-243A37E334C3}.Release|Any CPU.Build.0 = Release|Any CPU - {1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23}.Release|Any CPU.Build.0 = Release|Any CPU - {E911F809-ED33-491F-896D-341EF249303D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E911F809-ED33-491F-896D-341EF249303D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E911F809-ED33-491F-896D-341EF249303D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E911F809-ED33-491F-896D-341EF249303D}.Release|Any CPU.Build.0 = Release|Any CPU - {A1C15DD9-B856-472D-B0DA-BC69750C8736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A1C15DD9-B856-472D-B0DA-BC69750C8736}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A1C15DD9-B856-472D-B0DA-BC69750C8736}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A1C15DD9-B856-472D-B0DA-BC69750C8736}.Release|Any CPU.Build.0 = Release|Any CPU + {22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B}.Release|Any CPU.Build.0 = Release|Any CPU + {1216801F-2F9A-423D-9460-E3D301496533}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1216801F-2F9A-423D-9460-E3D301496533}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1216801F-2F9A-423D-9460-E3D301496533}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1216801F-2F9A-423D-9460-E3D301496533}.Release|Any CPU.Build.0 = Release|Any CPU + {ACAEE484-293F-4F82-B8D6-269A00FDBB57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ACAEE484-293F-4F82-B8D6-269A00FDBB57}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ACAEE484-293F-4F82-B8D6-269A00FDBB57}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ACAEE484-293F-4F82-B8D6-269A00FDBB57}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {AE57FE9E-110F-4BBD-AF58-243A37E334C3} = {A9856CFD-8B10-4C9E-B4B7-E49704894C71} - {1CF7DFC0-5C7A-4E9C-B5A8-0C9609004F23} = {8DC16EBA-2D9F-473A-820E-5A96C35E44F5} - {E911F809-ED33-491F-896D-341EF249303D} = {98E27906-6784-4538-9CDA-90FDEA7C83EF} - {A1C15DD9-B856-472D-B0DA-BC69750C8736} = {98E27906-6784-4538-9CDA-90FDEA7C83EF} + {22CF40A1-EE7E-4EBA-A502-5C5FC0D0758B} = {98E27906-6784-4538-9CDA-90FDEA7C83EF} + {1216801F-2F9A-423D-9460-E3D301496533} = {98E27906-6784-4538-9CDA-90FDEA7C83EF} + {ACAEE484-293F-4F82-B8D6-269A00FDBB57} = {8DC16EBA-2D9F-473A-820E-5A96C35E44F5} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D936E593-6A06-4989-8708-382308D741CF} diff --git a/README.MD b/README.MD index 756645b..f923e19 100644 --- a/README.MD +++ b/README.MD @@ -207,5 +207,7 @@ _unitOfWork.GetConnection().QueryAsync("select * from school"); ``` #### дÔÚ×îºó ChimpºËÐÄÊÇ»ùÓÚEFºÍDapperµÄ£¬ËùÒÔEFºÍDapperÒ»Çй¦Äܶ¼¿ÉÒÔʹÓᣱÈÈçµ¼º½ÊôÐÔ£¬×Ö¶ÎÓ³ÉäµÈµÈ¡£Õâ¸ö¿âÊÇÏßÉÏÏîÄ¿ºËÐÄÒÀÀµ£¬»á³¤ÆÚ¸üÐÂά»¤£¬Ï£Íû´ó¼ÒÄÜÌá³ö¸üºÃµÄÒâ¼û¡£ + #### ÏîÄ¿µØÖ· -[githubµØÖ·](https://github.com/longxianghui/chimp.git) \ No newline at end of file +Êý¾Ý¿â½Å±¾ÔÚ¸ùĿ¼µÄsqlscriptÎļþ¼ÐÀïÃæ +[githubµØÖ·](https://github.com/longxianghui/chimp.git) diff --git a/src/Leo.Chimp.Domain/Entities/School.cs b/example/Leo.Chimp.Domain/Entities/School.cs similarity index 100% rename from src/Leo.Chimp.Domain/Entities/School.cs rename to example/Leo.Chimp.Domain/Entities/School.cs diff --git a/src/Leo.Chimp.Domain/Entities/Student.cs b/example/Leo.Chimp.Domain/Entities/Student.cs similarity index 100% rename from src/Leo.Chimp.Domain/Entities/Student.cs rename to example/Leo.Chimp.Domain/Entities/Student.cs diff --git a/src/Leo.Chimp.Domain/KingDbContext.cs b/example/Leo.Chimp.Domain/KingDbContext.cs similarity index 100% rename from src/Leo.Chimp.Domain/KingDbContext.cs rename to example/Leo.Chimp.Domain/KingDbContext.cs diff --git a/src/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj b/example/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj similarity index 70% rename from src/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj rename to example/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj index 045c5f9..091198e 100644 --- a/src/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj +++ b/example/Leo.Chimp.Domain/Leo.Chimp.Domain.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Leo.Chimp.Domain/Repositories/SchoolRepository.cs b/example/Leo.Chimp.Domain/Repositories/SchoolRepository.cs similarity index 100% rename from src/Leo.Chimp.Domain/Repositories/SchoolRepository.cs rename to example/Leo.Chimp.Domain/Repositories/SchoolRepository.cs diff --git a/src/Leo.Chimp.Domain/Repositories/StudentRepository.cs b/example/Leo.Chimp.Domain/Repositories/StudentRepository.cs similarity index 100% rename from src/Leo.Chimp.Domain/Repositories/StudentRepository.cs rename to example/Leo.Chimp.Domain/Repositories/StudentRepository.cs diff --git a/src/Leo.Chimp.Example/Controllers/ValuesController.cs b/example/Leo.Chimp.Example/Controllers/ValuesController.cs similarity index 100% rename from src/Leo.Chimp.Example/Controllers/ValuesController.cs rename to example/Leo.Chimp.Example/Controllers/ValuesController.cs diff --git a/src/Leo.Chimp.Example/Leo.Chimp.Example.csproj b/example/Leo.Chimp.Example/Leo.Chimp.Example.csproj similarity index 91% rename from src/Leo.Chimp.Example/Leo.Chimp.Example.csproj rename to example/Leo.Chimp.Example/Leo.Chimp.Example.csproj index e09cc9c..3ff4fbb 100644 --- a/src/Leo.Chimp.Example/Leo.Chimp.Example.csproj +++ b/example/Leo.Chimp.Example/Leo.Chimp.Example.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.1 diff --git a/src/Leo.Chimp.Example/Program.cs b/example/Leo.Chimp.Example/Program.cs similarity index 100% rename from src/Leo.Chimp.Example/Program.cs rename to example/Leo.Chimp.Example/Program.cs diff --git a/src/Leo.Chimp.Example/Properties/launchSettings.json b/example/Leo.Chimp.Example/Properties/launchSettings.json similarity index 100% rename from src/Leo.Chimp.Example/Properties/launchSettings.json rename to example/Leo.Chimp.Example/Properties/launchSettings.json diff --git a/src/Leo.Chimp.Example/Startup.cs b/example/Leo.Chimp.Example/Startup.cs similarity index 100% rename from src/Leo.Chimp.Example/Startup.cs rename to example/Leo.Chimp.Example/Startup.cs diff --git a/src/Leo.Chimp.Example/appsettings.Development.json b/example/Leo.Chimp.Example/appsettings.Development.json similarity index 100% rename from src/Leo.Chimp.Example/appsettings.Development.json rename to example/Leo.Chimp.Example/appsettings.Development.json diff --git a/src/Leo.Chimp.Example/appsettings.json b/example/Leo.Chimp.Example/appsettings.json similarity index 100% rename from src/Leo.Chimp.Example/appsettings.json rename to example/Leo.Chimp.Example/appsettings.json diff --git a/src/Leo.Chimp.Test/DapperTest.cs b/test/Leo.Chimp.Test/DapperTest.cs similarity index 100% rename from src/Leo.Chimp.Test/DapperTest.cs rename to test/Leo.Chimp.Test/DapperTest.cs diff --git a/src/Leo.Chimp.Test/EfRepositoryTest.cs b/test/Leo.Chimp.Test/EfRepositoryTest.cs similarity index 100% rename from src/Leo.Chimp.Test/EfRepositoryTest.cs rename to test/Leo.Chimp.Test/EfRepositoryTest.cs diff --git a/src/Leo.Chimp.Test/Entities/School.cs b/test/Leo.Chimp.Test/Entities/School.cs similarity index 100% rename from src/Leo.Chimp.Test/Entities/School.cs rename to test/Leo.Chimp.Test/Entities/School.cs diff --git a/src/Leo.Chimp.Test/Entities/Student.cs b/test/Leo.Chimp.Test/Entities/Student.cs similarity index 100% rename from src/Leo.Chimp.Test/Entities/Student.cs rename to test/Leo.Chimp.Test/Entities/Student.cs diff --git a/src/Leo.Chimp.Test/KingDbContext.cs b/test/Leo.Chimp.Test/KingDbContext.cs similarity index 100% rename from src/Leo.Chimp.Test/KingDbContext.cs rename to test/Leo.Chimp.Test/KingDbContext.cs diff --git a/src/Leo.Chimp.Test/KingDbContextTest.cs b/test/Leo.Chimp.Test/KingDbContextTest.cs similarity index 100% rename from src/Leo.Chimp.Test/KingDbContextTest.cs rename to test/Leo.Chimp.Test/KingDbContextTest.cs diff --git a/src/Leo.Chimp.Test/Leo.Chimp.Test.csproj b/test/Leo.Chimp.Test/Leo.Chimp.Test.csproj similarity index 89% rename from src/Leo.Chimp.Test/Leo.Chimp.Test.csproj rename to test/Leo.Chimp.Test/Leo.Chimp.Test.csproj index 5db5052..a205f8b 100644 --- a/src/Leo.Chimp.Test/Leo.Chimp.Test.csproj +++ b/test/Leo.Chimp.Test/Leo.Chimp.Test.csproj @@ -15,6 +15,6 @@ - + diff --git a/src/Leo.Chimp.Test/Repositories/SchoolRepository.cs b/test/Leo.Chimp.Test/Repositories/SchoolRepository.cs similarity index 100% rename from src/Leo.Chimp.Test/Repositories/SchoolRepository.cs rename to test/Leo.Chimp.Test/Repositories/SchoolRepository.cs diff --git a/src/Leo.Chimp.Test/Repositories/StudentRepository.cs b/test/Leo.Chimp.Test/Repositories/StudentRepository.cs similarity index 100% rename from src/Leo.Chimp.Test/Repositories/StudentRepository.cs rename to test/Leo.Chimp.Test/Repositories/StudentRepository.cs