├── README.md
├── .gitattributes
├── BlogEFSqt.Api
├── WMBlog.db
├── appsettings.json
├── Properties
│ └── launchSettings.json
├── Extensions
│ └── MappingProfile.cs
├── BlogEFSqt.Api.csproj
├── Controllers
│ └── BlogController.cs
├── Startup.cs
└── Program.cs
├── BlogEFSqt.Core
├── Interfaces
│ ├── IEntity.cs
│ ├── IUnitOfWOrk.cs
│ └── IBlogRepository.cs
├── BlogEFSqt.Core.csproj
└── Entities
│ ├── Entity.cs
│ └── Blog.cs
├── BlogEFSqt.Infrastructure
├── Resources
│ └── BlogViewModel.cs
├── Database
│ ├── EntityConfigurations
│ │ └── BlogConfiguration.cs
│ ├── UnitOfWork.cs
│ ├── MyContext.cs
│ └── MyContextSeed.cs
├── BlogEFSqt.Infrastructure.csproj
├── Repositories
│ └── BlogRepository.cs
└── Migrations
│ ├── 20190429092645_init.cs
│ ├── MyContextModelSnapshot.cs
│ └── 20190429092645_init.Designer.cs
├── BlogEFSqt.sln
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # Blog-EFCore-Sqlite
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/WMBlog.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/anjoy8/Blog-EFCore-Sqlite/HEAD/BlogEFSqt.Api/WMBlog.db
--------------------------------------------------------------------------------
/BlogEFSqt.Core/Interfaces/IEntity.cs:
--------------------------------------------------------------------------------
1 | namespace BlogEFSqt.Core.Interfaces
2 | {
3 | public interface IEntity
4 | {
5 | int Id { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/BlogEFSqt.Core/BlogEFSqt.Core.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BlogEFSqt.Core/Entities/Entity.cs:
--------------------------------------------------------------------------------
1 | using BlogEFSqt.Core.Interfaces;
2 |
3 | namespace BlogEFSqt.Core.Entities
4 | {
5 | public abstract class Entity: IEntity
6 | {
7 | public int Id { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | },
9 | "ConnectionStrings": {
10 | "DefaultConnection": "Data Source=WMBlog.db"
11 | }
12 | }
--------------------------------------------------------------------------------
/BlogEFSqt.Core/Interfaces/IUnitOfWOrk.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Threading.Tasks;
5 |
6 | namespace BlogEFSqt.Core.Interfaces
7 | {
8 | public interface IUnitOfWork
9 | {
10 | Task SaveAsync();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "BlogEFSqt.Api": {
4 | "commandName": "Project",
5 | "launchBrowser": true,
6 | "launchUrl": "api/blogs",
7 | "environmentVariables": {
8 | "ASPNETCORE_ENVIRONMENT": "Development"
9 | },
10 | "applicationUrl": "http://localhost:7021/"
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/BlogEFSqt.Core/Entities/Blog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace BlogEFSqt.Core.Entities
6 | {
7 | public class Blog: Entity
8 | {
9 | public string Title { get; set; }
10 | public string Conent { get; set; }
11 | public string Submiter { get; set; }
12 | public DateTime UpdateDate { get; set; }
13 |
14 | public string Remark { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/BlogEFSqt.Core/Interfaces/IBlogRepository.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Threading.Tasks;
3 | using BlogEFSqt.Core.Entities;
4 |
5 | namespace BlogEFSqt.Core.Interfaces
6 | {
7 | public interface IBlogRepository
8 | {
9 | Task> GetAllBlogsAsync();
10 | Task GetBlogByIdAsync(int id);
11 | void AddBlog(Blog blog);
12 | void Delete(Blog blog);
13 | void Update(Blog blog);
14 | }
15 | }
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Resources/BlogViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace BlogEFSqt.Infrastructure.Resources
4 | {
5 | public class BlogViewModel
6 | {
7 | public int Id { get; set; }
8 |
9 | public string Title { get; set; }
10 | public string Conent { get; set; }
11 | public string Submiter { get; set; }
12 | public DateTime UpdateDate { get; set; }
13 |
14 | public string Remark { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/Extensions/MappingProfile.cs:
--------------------------------------------------------------------------------
1 | using AutoMapper;
2 | using BlogEFSqt.Core.Entities;
3 | using BlogEFSqt.Infrastructure.Resources;
4 |
5 | namespace BlogEFSqt.Api.Extensions
6 | {
7 | public class MappingProfile: Profile
8 | {
9 | public MappingProfile()
10 | {
11 | CreateMap()
12 | .ForMember(dest => dest.UpdateDate, opt => opt.MapFrom(src => src.UpdateDate));
13 |
14 | CreateMap();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Database/EntityConfigurations/BlogConfiguration.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using BlogEFSqt.Core.Entities;
5 | using Microsoft.EntityFrameworkCore;
6 | using Microsoft.EntityFrameworkCore.Metadata.Builders;
7 |
8 | namespace BlogEFSqt.Infrastructure.Database.EntityConfigurations
9 | {
10 | public class BlogConfiguration: IEntityTypeConfiguration
11 | {
12 | public void Configure(EntityTypeBuilder builder)
13 | {
14 | builder.Property(x => x.Remark).HasMaxLength(200);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Database/UnitOfWork.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Threading.Tasks;
5 | using BlogEFSqt.Core.Interfaces;
6 |
7 | namespace BlogEFSqt.Infrastructure.Database
8 | {
9 | public class UnitOfWork: IUnitOfWork
10 | {
11 | private readonly MyContext _myContext;
12 |
13 | public UnitOfWork(MyContext myContext)
14 | {
15 | _myContext = myContext;
16 | }
17 |
18 | public async Task SaveAsync()
19 | {
20 | return await _myContext.SaveChangesAsync() > 0;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Database/MyContext.cs:
--------------------------------------------------------------------------------
1 | using BlogEFSqt.Core.Entities;
2 | using BlogEFSqt.Infrastructure.Database.EntityConfigurations;
3 | using Microsoft.EntityFrameworkCore;
4 |
5 | namespace BlogEFSqt.Infrastructure.Database
6 | {
7 | public class MyContext : DbContext
8 | {
9 | public MyContext(DbContextOptions options)
10 | : base(options)
11 | {
12 |
13 | }
14 |
15 | protected override void OnModelCreating(ModelBuilder modelBuilder)
16 | {
17 | base.OnModelCreating(modelBuilder);
18 |
19 | modelBuilder.ApplyConfiguration(new BlogConfiguration());
20 | }
21 |
22 | public DbSet Blogs { get; set; }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/BlogEFSqt.Infrastructure.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 |
6 |
7 |
8 |
9 | all
10 | runtime; build; native; contentfiles; analyzers
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/BlogEFSqt.Api.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Repositories/BlogRepository.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Linq;
3 | using System.Threading.Tasks;
4 | using BlogEFSqt.Core.Entities;
5 | using BlogEFSqt.Core.Interfaces;
6 | using BlogEFSqt.Infrastructure.Database;
7 | using Microsoft.EntityFrameworkCore;
8 |
9 | namespace BlogEFSqt.Infrastructure.Repositories
10 | {
11 | public class BlogRepository : IBlogRepository
12 | {
13 | private readonly MyContext _myContext;
14 |
15 | public BlogRepository(MyContext myContext)
16 | {
17 | _myContext = myContext;
18 | }
19 |
20 |
21 |
22 | public Task GetBlogByIdAsync(int id)
23 | {
24 | throw new System.NotImplementedException();
25 | }
26 |
27 | public void AddBlog(Blog blog)
28 | {
29 | throw new System.NotImplementedException();
30 | }
31 | public void Delete(Blog blog)
32 | {
33 | _myContext.Blogs.Remove(blog);
34 | }
35 |
36 | public void Update(Blog blog)
37 | {
38 | _myContext.Entry(blog).State = EntityState.Modified;
39 | }
40 |
41 | public Task> GetAllBlogsAsync()
42 | {
43 | return _myContext.Blogs.AsQueryable().ToListAsync();
44 | }
45 |
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/Controllers/BlogController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using AutoMapper;
6 | using BlogEFSqt.Core.Entities;
7 | using BlogEFSqt.Core.Interfaces;
8 | using BlogEFSqt.Infrastructure.Resources;
9 | using Microsoft.AspNetCore.JsonPatch;
10 | using Microsoft.AspNetCore.Mvc;
11 | using Microsoft.Extensions.Logging;
12 | using Newtonsoft.Json;
13 | using Newtonsoft.Json.Serialization;
14 |
15 | namespace BlogEFSqt.Api.Controllers
16 | {
17 | [Route("api/blogs")]
18 | public class BlogController : Controller
19 | {
20 | private readonly IBlogRepository _blogRepository;
21 | private readonly IMapper _mapper;
22 |
23 | public BlogController(
24 | IBlogRepository blogRepository,
25 | IMapper mapper)
26 | {
27 | _blogRepository = blogRepository;
28 | _mapper = mapper;
29 | }
30 |
31 |
32 | [HttpGet]
33 | public async Task Get(BlogViewModel blogViewModel)
34 | {
35 |
36 | var blogList = await _blogRepository.GetAllBlogsAsync();
37 |
38 | var blogResources = _mapper.Map, IEnumerable>(blogList);
39 |
40 |
41 | return Ok(blogResources);
42 | }
43 |
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Migrations/20190429092645_init.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.EntityFrameworkCore.Migrations;
3 |
4 | namespace BlogEFSqt.Infrastructure.Migrations
5 | {
6 | public partial class init : Migration
7 | {
8 | protected override void Up(MigrationBuilder migrationBuilder)
9 | {
10 | migrationBuilder.CreateTable(
11 | name: "Blogs",
12 | columns: table => new
13 | {
14 | Id = table.Column(nullable: false)
15 | .Annotation("Sqlite:Autoincrement", true),
16 | Title = table.Column(nullable: true),
17 | Conent = table.Column(nullable: true),
18 | Submiter = table.Column(nullable: true),
19 | UpdateDate = table.Column(nullable: false),
20 | Remark = table.Column(maxLength: 200, nullable: true)
21 | },
22 | constraints: table =>
23 | {
24 | table.PrimaryKey("PK_Blogs", x => x.Id);
25 | });
26 | }
27 |
28 | protected override void Down(MigrationBuilder migrationBuilder)
29 | {
30 | migrationBuilder.DropTable(
31 | name: "Blogs");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Migrations/MyContextModelSnapshot.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using BlogEFSqt.Infrastructure.Database;
4 | using Microsoft.EntityFrameworkCore;
5 | using Microsoft.EntityFrameworkCore.Infrastructure;
6 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7 |
8 | namespace BlogEFSqt.Infrastructure.Migrations
9 | {
10 | [DbContext(typeof(MyContext))]
11 | partial class MyContextModelSnapshot : ModelSnapshot
12 | {
13 | protected override void BuildModel(ModelBuilder modelBuilder)
14 | {
15 | #pragma warning disable 612, 618
16 | modelBuilder
17 | .HasAnnotation("ProductVersion", "2.1.8-servicing-32085");
18 |
19 | modelBuilder.Entity("BlogEFSqt.Core.Entities.Blog", b =>
20 | {
21 | b.Property("Id")
22 | .ValueGeneratedOnAdd();
23 |
24 | b.Property("Conent");
25 |
26 | b.Property("Remark")
27 | .HasMaxLength(200);
28 |
29 | b.Property("Submiter");
30 |
31 | b.Property("Title");
32 |
33 | b.Property("UpdateDate");
34 |
35 | b.HasKey("Id");
36 |
37 | b.ToTable("Blogs");
38 | });
39 | #pragma warning restore 612, 618
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Migrations/20190429092645_init.Designer.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using BlogEFSqt.Infrastructure.Database;
4 | using Microsoft.EntityFrameworkCore;
5 | using Microsoft.EntityFrameworkCore.Infrastructure;
6 | using Microsoft.EntityFrameworkCore.Migrations;
7 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
8 |
9 | namespace BlogEFSqt.Infrastructure.Migrations
10 | {
11 | [DbContext(typeof(MyContext))]
12 | [Migration("20190429092645_init")]
13 | partial class init
14 | {
15 | protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 | {
17 | #pragma warning disable 612, 618
18 | modelBuilder
19 | .HasAnnotation("ProductVersion", "2.1.8-servicing-32085");
20 |
21 | modelBuilder.Entity("BlogEFSqt.Core.Entities.Blog", b =>
22 | {
23 | b.Property("Id")
24 | .ValueGeneratedOnAdd();
25 |
26 | b.Property("Conent");
27 |
28 | b.Property("Remark")
29 | .HasMaxLength(200);
30 |
31 | b.Property("Submiter");
32 |
33 | b.Property("Title");
34 |
35 | b.Property("UpdateDate");
36 |
37 | b.HasKey("Id");
38 |
39 | b.ToTable("Blogs");
40 | });
41 | #pragma warning restore 612, 618
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/Startup.cs:
--------------------------------------------------------------------------------
1 | using AutoMapper;
2 | using BlogEFSqt.Core.Interfaces;
3 | using BlogEFSqt.Infrastructure.Database;
4 | using BlogEFSqt.Infrastructure.Repositories;
5 | using Microsoft.AspNetCore.Builder;
6 | using Microsoft.AspNetCore.Mvc;
7 | using Microsoft.EntityFrameworkCore;
8 | using Microsoft.Extensions.Configuration;
9 | using Microsoft.Extensions.DependencyInjection;
10 | using Microsoft.Extensions.Logging;
11 |
12 | namespace BlogEFSqt.Api
13 | {
14 | public class Startup
15 | {
16 | //0、将 BlogEFSqt.Api 设置为启动项
17 | //1、在 Package Manager Console 切换到 BlogEFSqt.Infrastructure
18 | //2、执行 add-migration init,生产迁移
19 | //3、执行 update-database 生成 WMBlog.db 数据库
20 | //4、启动项目,自动生成 seed 数据
21 | private static IConfiguration Configuration { get; set; }
22 |
23 | public Startup(IConfiguration configuration)
24 | {
25 | Configuration = configuration;
26 | }
27 |
28 | public void ConfigureServices(IServiceCollection services)
29 | {
30 |
31 | services.AddMvc();
32 |
33 | services.AddDbContext(options =>
34 | {
35 | var connectionString = Configuration["ConnectionStrings:DefaultConnection"];
36 | options.UseSqlite(connectionString);
37 | });
38 |
39 |
40 | services.AddAutoMapper();
41 |
42 | services.AddScoped();
43 | services.AddScoped();
44 |
45 | }
46 |
47 | public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
48 | {
49 |
50 | app.UseMvc();
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/BlogEFSqt.Infrastructure/Database/MyContextSeed.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Threading.Tasks;
5 | using BlogEFSqt.Core.Entities;
6 | using Microsoft.EntityFrameworkCore.Internal;
7 | using Microsoft.Extensions.Logging;
8 |
9 | namespace BlogEFSqt.Infrastructure.Database
10 | {
11 | public class MyContextSeed
12 | {
13 | public static async Task SeedAsync(MyContext myContext,
14 | ILoggerFactory loggerFactory, int retry = 0)
15 | {
16 | int retryForAvailability = retry;
17 | try
18 | {
19 | if (!myContext.Blogs.Any())
20 | {
21 | myContext.Blogs.AddRange(
22 | new List{
23 | new Blog{
24 | Title = "Laozhang",
25 | Conent = "老张的哲学",
26 | Submiter = "lz",
27 | UpdateDate = DateTime.Now,
28 | Remark="phi"
29 | }
30 |
31 | }
32 | );
33 | await myContext.SaveChangesAsync();
34 | }
35 | }
36 | catch (Exception ex)
37 | {
38 | if (retryForAvailability < 10)
39 | {
40 | retryForAvailability++;
41 | var logger = loggerFactory.CreateLogger();
42 | logger.LogError(ex.Message);
43 | await SeedAsync(myContext, loggerFactory, retryForAvailability);
44 | }
45 | }
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/BlogEFSqt.Api/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Reflection;
4 | using BlogEFSqt.Infrastructure.Database;
5 | using Microsoft.AspNetCore;
6 | using Microsoft.AspNetCore.Hosting;
7 | using Microsoft.Extensions.DependencyInjection;
8 | using Microsoft.Extensions.Logging;
9 | using Serilog;
10 | using Serilog.Events;
11 |
12 | namespace BlogEFSqt.Api
13 | {
14 | public class Program
15 | {
16 | public static void Main(string[] args)
17 | {
18 | Log.Logger = new LoggerConfiguration()
19 | .MinimumLevel.Debug()
20 | .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
21 | .Enrich.FromLogContext()
22 | .WriteTo.Console()
23 | .WriteTo.File(Path.Combine("Log", @"log.log"), rollingInterval: RollingInterval.Day)
24 | .CreateLogger();
25 |
26 | var host = CreateWebHostBuilder(args).Build();
27 |
28 | using (var scope = host.Services.CreateScope())
29 | {
30 | var services = scope.ServiceProvider;
31 | var loggerFactory = services.GetRequiredService();
32 |
33 | try
34 | {
35 | var myContext = services.GetRequiredService();
36 | MyContextSeed.SeedAsync(myContext, loggerFactory).Wait();
37 | }
38 | catch (Exception e)
39 | {
40 | var logger = loggerFactory.CreateLogger();
41 | logger.LogError(e, "Error occured seeding the Database.");
42 | }
43 | }
44 |
45 | host.Run();
46 | }
47 |
48 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
49 | WebHost.CreateDefaultBuilder(args)
50 | .UseStartup(typeof(Startup).GetTypeInfo().Assembly.FullName)
51 | .UseSerilog();
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/BlogEFSqt.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2003
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlogEFSqt.Api", "BlogEFSqt.Api\BlogEFSqt.Api.csproj", "{4138AB17-E938-4F2C-8EE3-354936196D40}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlogEFSqt.Core", "BlogEFSqt.Core\BlogEFSqt.Core.csproj", "{E16FF307-6F96-4498-8D78-6D5270341360}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlogEFSqt.Infrastructure", "BlogEFSqt.Infrastructure\BlogEFSqt.Infrastructure.csproj", "{7E926050-A1E5-4DC2-B335-B2C7C2255063}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {4138AB17-E938-4F2C-8EE3-354936196D40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {4138AB17-E938-4F2C-8EE3-354936196D40}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {4138AB17-E938-4F2C-8EE3-354936196D40}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {4138AB17-E938-4F2C-8EE3-354936196D40}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {E16FF307-6F96-4498-8D78-6D5270341360}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {E16FF307-6F96-4498-8D78-6D5270341360}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {E16FF307-6F96-4498-8D78-6D5270341360}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {E16FF307-6F96-4498-8D78-6D5270341360}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {7E926050-A1E5-4DC2-B335-B2C7C2255063}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {7E926050-A1E5-4DC2-B335-B2C7C2255063}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {7E926050-A1E5-4DC2-B335-B2C7C2255063}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {7E926050-A1E5-4DC2-B335-B2C7C2255063}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {0DF4882B-3A20-4DB7-B232-26F79F9C3838}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | bld/
24 | [Bb]in/
25 | [Oo]bj/
26 | [Ll]og/
27 |
28 | # Visual Studio 2015/2017 cache/options directory
29 | .vs/
30 | # Uncomment if you have tasks that create the project's static files in wwwroot
31 | #wwwroot/
32 |
33 | # Visual Studio 2017 auto generated files
34 | Generated\ Files/
35 |
36 | # MSTest test Results
37 | [Tt]est[Rr]esult*/
38 | [Bb]uild[Ll]og.*
39 |
40 | # NUNIT
41 | *.VisualState.xml
42 | TestResult.xml
43 |
44 | # Build Results of an ATL Project
45 | [Dd]ebugPS/
46 | [Rr]eleasePS/
47 | dlldata.c
48 |
49 | # Benchmark Results
50 | BenchmarkDotNet.Artifacts/
51 |
52 | # .NET Core
53 | project.lock.json
54 | project.fragment.lock.json
55 | artifacts/
56 |
57 | # StyleCop
58 | StyleCopReport.xml
59 |
60 | # Files built by Visual Studio
61 | *_i.c
62 | *_p.c
63 | *_h.h
64 | *.ilk
65 | *.meta
66 | *.obj
67 | *.iobj
68 | *.pch
69 | *.pdb
70 | *.ipdb
71 | *.pgc
72 | *.pgd
73 | *.rsp
74 | *.sbr
75 | *.tlb
76 | *.tli
77 | *.tlh
78 | *.tmp
79 | *.tmp_proj
80 | *_wpftmp.csproj
81 | *.log
82 | *.vspscc
83 | *.vssscc
84 | .builds
85 | *.pidb
86 | *.svclog
87 | *.scc
88 |
89 | # Chutzpah Test files
90 | _Chutzpah*
91 |
92 | # Visual C++ cache files
93 | ipch/
94 | *.aps
95 | *.ncb
96 | *.opendb
97 | *.opensdf
98 | *.sdf
99 | *.cachefile
100 | *.VC.db
101 | *.VC.VC.opendb
102 |
103 | # Visual Studio profiler
104 | *.psess
105 | *.vsp
106 | *.vspx
107 | *.sap
108 |
109 | # Visual Studio Trace Files
110 | *.e2e
111 |
112 | # TFS 2012 Local Workspace
113 | $tf/
114 |
115 | # Guidance Automation Toolkit
116 | *.gpState
117 |
118 | # ReSharper is a .NET coding add-in
119 | _ReSharper*/
120 | *.[Rr]e[Ss]harper
121 | *.DotSettings.user
122 |
123 | # JustCode is a .NET coding add-in
124 | .JustCode
125 |
126 | # TeamCity is a build add-in
127 | _TeamCity*
128 |
129 | # DotCover is a Code Coverage Tool
130 | *.dotCover
131 |
132 | # AxoCover is a Code Coverage Tool
133 | .axoCover/*
134 | !.axoCover/settings.json
135 |
136 | # Visual Studio code coverage results
137 | *.coverage
138 | *.coveragexml
139 |
140 | # NCrunch
141 | _NCrunch_*
142 | .*crunch*.local.xml
143 | nCrunchTemp_*
144 |
145 | # MightyMoose
146 | *.mm.*
147 | AutoTest.Net/
148 |
149 | # Web workbench (sass)
150 | .sass-cache/
151 |
152 | # Installshield output folder
153 | [Ee]xpress/
154 |
155 | # DocProject is a documentation generator add-in
156 | DocProject/buildhelp/
157 | DocProject/Help/*.HxT
158 | DocProject/Help/*.HxC
159 | DocProject/Help/*.hhc
160 | DocProject/Help/*.hhk
161 | DocProject/Help/*.hhp
162 | DocProject/Help/Html2
163 | DocProject/Help/html
164 |
165 | # Click-Once directory
166 | publish/
167 |
168 | # Publish Web Output
169 | *.[Pp]ublish.xml
170 | *.azurePubxml
171 | # Note: Comment the next line if you want to checkin your web deploy settings,
172 | # but database connection strings (with potential passwords) will be unencrypted
173 | *.pubxml
174 | *.publishproj
175 |
176 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
177 | # checkin your Azure Web App publish settings, but sensitive information contained
178 | # in these scripts will be unencrypted
179 | PublishScripts/
180 |
181 | # NuGet Packages
182 | *.nupkg
183 | # The packages folder can be ignored because of Package Restore
184 | **/[Pp]ackages/*
185 | # except build/, which is used as an MSBuild target.
186 | !**/[Pp]ackages/build/
187 | # Uncomment if necessary however generally it will be regenerated when needed
188 | #!**/[Pp]ackages/repositories.config
189 | # NuGet v3's project.json files produces more ignorable files
190 | *.nuget.props
191 | *.nuget.targets
192 |
193 | # Microsoft Azure Build Output
194 | csx/
195 | *.build.csdef
196 |
197 | # Microsoft Azure Emulator
198 | ecf/
199 | rcf/
200 |
201 | # Windows Store app package directories and files
202 | AppPackages/
203 | BundleArtifacts/
204 | Package.StoreAssociation.xml
205 | _pkginfo.txt
206 | *.appx
207 |
208 | # Visual Studio cache files
209 | # files ending in .cache can be ignored
210 | *.[Cc]ache
211 | # but keep track of directories ending in .cache
212 | !*.[Cc]ache/
213 |
214 | # Others
215 | ClientBin/
216 | ~$*
217 | *~
218 | *.dbmdl
219 | *.dbproj.schemaview
220 | *.jfm
221 | *.pfx
222 | *.publishsettings
223 | orleans.codegen.cs
224 |
225 | # Including strong name files can present a security risk
226 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
227 | #*.snk
228 |
229 | # Since there are multiple workflows, uncomment next line to ignore bower_components
230 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
231 | #bower_components/
232 |
233 | # RIA/Silverlight projects
234 | Generated_Code/
235 |
236 | # Backup & report files from converting an old project file
237 | # to a newer Visual Studio version. Backup files are not needed,
238 | # because we have git ;-)
239 | _UpgradeReport_Files/
240 | Backup*/
241 | UpgradeLog*.XML
242 | UpgradeLog*.htm
243 | ServiceFabricBackup/
244 | *.rptproj.bak
245 |
246 | # SQL Server files
247 | *.mdf
248 | *.ldf
249 | *.ndf
250 |
251 | # Business Intelligence projects
252 | *.rdl.data
253 | *.bim.layout
254 | *.bim_*.settings
255 | *.rptproj.rsuser
256 |
257 | # Microsoft Fakes
258 | FakesAssemblies/
259 |
260 | # GhostDoc plugin setting file
261 | *.GhostDoc.xml
262 |
263 | # Node.js Tools for Visual Studio
264 | .ntvs_analysis.dat
265 | node_modules/
266 |
267 | # Visual Studio 6 build log
268 | *.plg
269 |
270 | # Visual Studio 6 workspace options file
271 | *.opt
272 |
273 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
274 | *.vbw
275 |
276 | # Visual Studio LightSwitch build output
277 | **/*.HTMLClient/GeneratedArtifacts
278 | **/*.DesktopClient/GeneratedArtifacts
279 | **/*.DesktopClient/ModelManifest.xml
280 | **/*.Server/GeneratedArtifacts
281 | **/*.Server/ModelManifest.xml
282 | _Pvt_Extensions
283 |
284 | # Paket dependency manager
285 | .paket/paket.exe
286 | paket-files/
287 |
288 | # FAKE - F# Make
289 | .fake/
290 |
291 | # JetBrains Rider
292 | .idea/
293 | *.sln.iml
294 |
295 | # CodeRush personal settings
296 | .cr/personal
297 |
298 | # Python Tools for Visual Studio (PTVS)
299 | __pycache__/
300 | *.pyc
301 |
302 | # Cake - Uncomment if you are using it
303 | # tools/**
304 | # !tools/packages.config
305 |
306 | # Tabs Studio
307 | *.tss
308 |
309 | # Telerik's JustMock configuration file
310 | *.jmconfig
311 |
312 | # BizTalk build output
313 | *.btp.cs
314 | *.btm.cs
315 | *.odx.cs
316 | *.xsd.cs
317 |
318 | # OpenCover UI analysis results
319 | OpenCover/
320 |
321 | # Azure Stream Analytics local run output
322 | ASALocalRun/
323 |
324 | # MSBuild Binary and Structured Log
325 | *.binlog
326 |
327 | # NVidia Nsight GPU debugger configuration file
328 | *.nvuser
329 |
330 | # MFractors (Xamarin productivity tool) working folder
331 | .mfractor/
332 |
333 | # Local History for Visual Studio
334 | .localhistory/
335 |
336 | # wwwroot/images
337 | *images/
338 |
--------------------------------------------------------------------------------