Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
longxianghui committed Oct 9, 2019
1 parent ff2d4fb commit a9cfaaf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions Leo.Chimp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Domain", "example
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Leo.Chimp.Test", "test\Leo.Chimp.Test\Leo.Chimp.Test.csproj", "{ACAEE484-293F-4F82-B8D6-269A00FDBB57}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2F485812-79ED-4CAB-80B3-14BD49C4A9A1}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
## 使用方法
引入nuget
```
<PackageReference Include="Leo.Chimp" Version="2.1.1" />
<PackageReference Include="Leo.Chimp" Version="2.1.2" />
```
创建实体对象,继承IEntity

Expand Down
2 changes: 1 addition & 1 deletion example/Leo.Chimp.Example/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
services.AddChimp<ChimpDbContext>(
opt => opt.UseSqlServer("Server=10.0.0.99;Database=king;Uid=sa;Pwd=Fuluerp123")
opt => opt.UseSqlServer("Server=10.0.0.99;Database=Chimp;Uid=sa;Pwd=Fuluerp123")
);
}

Expand Down
4 changes: 2 additions & 2 deletions sqlscript/mysql/script.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ CREATE TABLE `school` (
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
`Id` varchar(50) NOT NULL,
`Id` char(36) NOT NULL,
`Name` varchar(255) DEFAULT NULL,
`SchoolId` int(11) DEFAULT NULL,
`SchoolId` char(36) DEFAULT NULL,
`Birthday` datetime DEFAULT NULL,
PRIMARY KEY (`Id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 comments on commit a9cfaaf

Please sign in to comment.