diff --git a/Examples/dbcontext_01/Controllers/ValuesController.cs b/Examples/dbcontext_01/Controllers/ValuesController.cs deleted file mode 100644 index 23fd09ae..00000000 --- a/Examples/dbcontext_01/Controllers/ValuesController.cs +++ /dev/null @@ -1,214 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using FreeSql; -using Microsoft.AspNetCore.Mvc; - -namespace dbcontext_01.Controllers -{ - [Route("api/[controller]")] - [ApiController] - public class ValuesController : ControllerBase - { - - IFreeSql _orm; - public ValuesController(SongContext songContext, - IFreeSql orm1, IFreeSql orm2, - IFreeSql orm3 - ) { - - _orm = orm1; - - } - - // GET api/values - [HttpGet] - async public Task Get() - { - - long id = 0; - - try { - - var repos2Song = _orm.GetRepository(); - repos2Song.Where(a => a.Id > 10).ToList(); - //查询结果,进入 states - - var song = new Song { }; - repos2Song.Insert(song); - id = song.Id; - - var adds = Enumerable.Range(0, 100) - .Select(a => new Song { Create_time = DateTime.Now, Is_deleted = false, Title = "xxxx" + a, Url = "url222" }) - .ToList(); - //创建一堆无主键值 - - repos2Song.Insert(adds); - - for (var a = 0; a < 10; a++) - adds[a].Title = "dkdkdkdk" + a; - - repos2Song.Update(adds); - //批量修改 - - repos2Song.Delete(adds.Skip(10).Take(20).ToList()); - //批量删除,10-20 元素的主键值会被清除 - - adds.Last().Url = "skldfjlksdjglkjjcccc"; - repos2Song.Update(adds.Last()); - - adds.First().Url = "skldfjlksdjglkjjcccc"; - repos2Song.Update(adds.First()); - - - using (var ctx = new SongContext()) { - - ctx.Songs.Select.Where(a => a.Id > 10).ToList(); - //查询结果,进入 states - - song = new Song { }; - //可插入的 song - - ctx.Songs.Add(song); - id = song.Id; - //因有自增类型,立即开启事务执行SQL,返回自增值 - - adds = Enumerable.Range(0, 100) - .Select(a => new Song { Create_time = DateTime.Now, Is_deleted = false, Title = "xxxx" + a, Url = "url222" }) - .ToList(); - //创建一堆无主键值 - - ctx.Songs.AddRange(adds); - //立即执行,将自增值赋给 adds 所有元素,因为有自增类型,如果其他类型,指定传入主键值,不会立即执行 - - for (var a = 0; a < 10; a++) - adds[a].Title = "dkdkdkdk" + a; - - ctx.Songs.UpdateRange(adds); - //批量修改,进入队列 - - ctx.Songs.RemoveRange(adds.Skip(10).Take(20).ToList()); - //批量删除,进入队列,完成时 10-20 元素的主键值会被清除 - - //ctx.Songs.Update(adds.First()); - - adds.Last().Url = "skldfjlksdjglkjjcccc"; - ctx.Songs.Update(adds.Last()); - - adds.First().Url = "skldfjlksdjglkjjcccc"; - ctx.Songs.Update(adds.First()); - - //单条修改 urls 的值,进入队列 - - //throw new Exception("回滚"); - - //ctx.Songs.Select.First(); - //这里做一个查询,会立即打包【执行队列】,避免没有提交的数据,影响查询结果 - - ctx.SaveChanges(); - //打包【执行队列】,提交事务 - } - - using (var uow = _orm.CreateUnitOfWork()) { - - var reposSong = uow.GetRepository(); - reposSong.Where(a => a.Id > 10).ToList(); - //查询结果,进入 states - - song = new Song { }; - reposSong.Insert(song); - id = song.Id; - - adds = Enumerable.Range(0, 100) - .Select(a => new Song { Create_time = DateTime.Now, Is_deleted = false, Title = "xxxx" + a, Url = "url222" }) - .ToList(); - //创建一堆无主键值 - - reposSong.Insert(adds); - - for (var a = 0; a < 10; a++) - adds[a].Title = "dkdkdkdk" + a; - - reposSong.Update(adds); - //批量修改 - - reposSong.Delete(adds.Skip(10).Take(20).ToList()); - //批量删除,10-20 元素的主键值会被清除 - - adds.Last().Url = "skldfjlksdjglkjjcccc"; - reposSong.Update(adds.Last()); - - adds.First().Url = "skldfjlksdjglkjjcccc"; - reposSong.Update(adds.First()); - - uow.Commit(); - } - - - - //using (var ctx = new SongContext()) { - - // var song = new Song { }; - // await ctx.Songs.AddAsync(song); - // id = song.Id; - - // var adds = Enumerable.Range(0, 100) - // .Select(a => new Song { Create_time = DateTime.Now, Is_deleted = false, Title = "xxxx" + a, Url = "url222" }) - // .ToList(); - // await ctx.Songs.AddRangeAsync(adds); - - // for (var a = 0; a < adds.Count; a++) - // adds[a].Title = "dkdkdkdk" + a; - - // ctx.Songs.UpdateRange(adds); - - // ctx.Songs.RemoveRange(adds.Skip(10).Take(20).ToList()); - - // //ctx.Songs.Update(adds.First()); - - // adds.Last().Url = "skldfjlksdjglkjjcccc"; - // ctx.Songs.Update(adds.Last()); - - // //throw new Exception("回滚"); - - // await ctx.SaveChangesAsync(); - //} - } catch { - var item = await _orm.Select().Where(a => a.Id == id).FirstAsync(); - - throw; - } - - var item22 = await _orm.Select().Where(a => a.Id == id).FirstAsync(); - var item33 = await _orm.Select().Where(a => a.Id > id).ToListAsync(); - - return item22.Id.ToString(); - } - - // GET api/values/5 - [HttpGet("{id}")] - public ActionResult Get(int id) - { - return "value"; - } - - // POST api/values - [HttpPost] - public void Post([FromBody] string value) - { - } - - // PUT api/values/5 - [HttpPut("{id}")] - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - [HttpDelete("{id}")] - public void Delete(int id) - { - } - } -} diff --git a/Examples/dbcontext_01/DbContexts/SongContext.cs b/Examples/dbcontext_01/DbContexts/SongContext.cs deleted file mode 100644 index 45e174d5..00000000 --- a/Examples/dbcontext_01/DbContexts/SongContext.cs +++ /dev/null @@ -1,52 +0,0 @@ -using FreeSql; -using FreeSql.DataAnnotations; -using System; -using System.Collections.Generic; - -namespace dbcontext_01 { - - public class SongContext : DbContext { - - public DbSet Songs { get; set; } - public DbSet Tags { get; set; } - - protected override void OnConfiguring(DbContextOptionsBuilder builder) { - builder.UseFreeSql(dbcontext_01.Startup.Fsql); - } - } - - - public class Song { - [Column(IsIdentity = true)] - public int Id { get; set; } - public DateTime? Create_time { get; set; } - public bool? Is_deleted { get; set; } - public string Title { get; set; } - public string Url { get; set; } - - public virtual ICollection Tags { get; set; } - - [Column(IsVersion = true)] - public long versionRow { get; set; } - } - public class Song_tag { - public int Song_id { get; set; } - public virtual Song Song { get; set; } - - public int Tag_id { get; set; } - public virtual Tag Tag { get; set; } - } - - public class Tag { - [Column(IsIdentity = true)] - public int Id { get; set; } - public int? Parent_id { get; set; } - public virtual Tag Parent { get; set; } - - public decimal? Ddd { get; set; } - public string Name { get; set; } - - public virtual ICollection Songs { get; set; } - public virtual ICollection Tags { get; set; } - } -} diff --git a/Examples/dbcontext_01/Program.cs b/Examples/dbcontext_01/Program.cs deleted file mode 100644 index bdd2cc14..00000000 --- a/Examples/dbcontext_01/Program.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Numerics; -using System.Threading.Tasks; -using FreeSql; -using FreeSql.DataAnnotations; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; - -namespace dbcontext_01 -{ - public class Program - { - - public class Song { - [Column(IsIdentity = true)] - public int Id { get; set; } - public string BigNumber { get; set; } - - [Column(IsVersion = true)]//使用简单 - public long versionRow { get; set; } - } - - public class SongContext : DbContext { - - public DbSet Songs { get; set; } - - protected override void OnConfiguring(DbContextOptionsBuilder builder) { - builder.UseFreeSql(fsql); - } - } - static IFreeSql fsql; - public static void Main(string[] args) { - fsql = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\dd2.db;Pooling=true;Max Pool Size=10") - .UseAutoSyncStructure(true) - .UseLazyLoading(true) - .UseNoneCommandParameter(true) - - .UseMonitorCommand(cmd => Trace.WriteLine(cmd.CommandText)) - .Build(); - - using (var ctx = new SongContext()) { - var song = new Song { BigNumber = "1000000000000000000" }; - ctx.Songs.Add(song); - - ctx.Songs.Update(song); - - song.BigNumber = (BigInteger.Parse(song.BigNumber) + 1).ToString(); - ctx.Songs.Update(song); - - ctx.SaveChanges(); - } - - CreateWebHostBuilder(args).Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup(); - } -} diff --git a/Examples/dbcontext_01/Properties/launchSettings.json b/Examples/dbcontext_01/Properties/launchSettings.json deleted file mode 100644 index a7caa4d3..00000000 --- a/Examples/dbcontext_01/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:53030/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "dbcontext_01": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:53031/" - } - } -} \ No newline at end of file diff --git a/Examples/dbcontext_01/Startup.cs b/Examples/dbcontext_01/Startup.cs deleted file mode 100644 index 4a0edf5a..00000000 --- a/Examples/dbcontext_01/Startup.cs +++ /dev/null @@ -1,91 +0,0 @@ -using FreeSql; -using FreeSql.DataAnnotations; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Swashbuckle.AspNetCore.Swagger; -using System; -using System.Diagnostics; -using System.Linq; -using System.Text; - -namespace dbcontext_01 -{ - public class Startup - { - public Startup(IConfiguration configuration, ILoggerFactory loggerFactory) - { - Configuration = configuration; - - Fsql = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10") - //.UseConnectionString(FreeSql.DataType.SqlServer, "Data Source=.;Integrated Security=True;Initial Catalog=freesqlTest;Pooling=true;Max Pool Size=10") - .UseLogger(loggerFactory.CreateLogger()) - .UseAutoSyncStructure(true) - .UseLazyLoading(true) - .UseNoneCommandParameter(true) - - .UseMonitorCommand(cmd => Trace.WriteLine(cmd.CommandText), - (cmd, log) => Trace.WriteLine(log) - ) - .Build(); - - Fsql2 = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document222.db;Pooling=true;Max Pool Size=10") - //.UseConnectionString(FreeSql.DataType.SqlServer, "Data Source=.;Integrated Security=True;Initial Catalog=freesqlTest;Pooling=true;Max Pool Size=10") - .UseLogger(loggerFactory.CreateLogger()) - .UseAutoSyncStructure(true) - .UseLazyLoading(true) - - .UseMonitorCommand(cmd => Trace.WriteLine(cmd.CommandText), - (cmd, log) => Trace.WriteLine(log) - ) - .Build(); - } - - enum MySql { } - enum PgSql { } - - public IConfiguration Configuration { get; } - public static IFreeSql Fsql { get; private set; } - public static IFreeSql Fsql2 { get; private set; } - - public void ConfigureServices(IServiceCollection services) - { - services.AddMvc(); - services.AddSwaggerGen(options => { - options.SwaggerDoc("v1", new Info { - Version = "v1", - Title = "FreeSql.DbContext API" - }); - //options.IncludeXmlComments(xmlPath); - }); - - - - services.AddSingleton(Fsql); - services.AddSingleton>(Fsql2); - services.AddFreeDbContext(options => options.UseFreeSql(Fsql)); - } - - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { - Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); - Console.OutputEncoding = Encoding.GetEncoding("GB2312"); - Console.InputEncoding = Encoding.GetEncoding("GB2312"); - - loggerFactory.AddConsole(Configuration.GetSection("Logging")); - loggerFactory.AddDebug(); - - app.UseHttpMethodOverride(new HttpMethodOverrideOptions { FormFieldName = "X-Http-Method-Override" }); - app.UseDeveloperExceptionPage(); - app.UseMvc(); - - app.UseSwagger(); - app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "FreeSql.RESTful API V1"); - }); - } - } -} diff --git a/Examples/dbcontext_01/appsettings.Development.json b/Examples/dbcontext_01/appsettings.Development.json deleted file mode 100644 index e203e940..00000000 --- a/Examples/dbcontext_01/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/Examples/dbcontext_01/appsettings.json b/Examples/dbcontext_01/appsettings.json deleted file mode 100644 index def9159a..00000000 --- a/Examples/dbcontext_01/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/Examples/dbcontext_01/dbcontext_01.csproj b/Examples/dbcontext_01/dbcontext_01.csproj deleted file mode 100644 index 480916b7..00000000 --- a/Examples/dbcontext_01/dbcontext_01.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - netcoreapp2.1 - InProcess - - - - - - - - - - - - - - diff --git a/Examples/domain_01/Domains/MusicDomain.cs b/Examples/domain_01/Domains/MusicDomain.cs deleted file mode 100644 index f666e245..00000000 --- a/Examples/domain_01/Domains/MusicDomain.cs +++ /dev/null @@ -1,21 +0,0 @@ -using domain_01.Entitys; -using FreeSql; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace domain_01.Domains -{ - public class MusicDomain - { - GuidRepository _singerRepostiry => g.orm.GetGuidRepository(); - GuidRepository _albumRepostiry => g.orm.GetGuidRepository(); - GuidRepository _songRepostiry => g.orm.GetGuidRepository(); - GuidRepository _albumSongRepostiry => g.orm.GetGuidRepository(); - - public void SaveSong() { - - } - } -} diff --git a/Examples/domain_01/Entitys/Album.cs b/Examples/domain_01/Entitys/Album.cs deleted file mode 100644 index 9221dd4f..00000000 --- a/Examples/domain_01/Entitys/Album.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace domain_01.Entitys -{ - /// - /// 专辑 - /// - public class Album - { - public Guid Id { get; set; } - - public string Name { get; set; } - - public virtual ICollection Songs { get; set; } - - public DateTime PublishTime { get; set; } - } -} diff --git a/Examples/domain_01/Entitys/AlbumSong.cs b/Examples/domain_01/Entitys/AlbumSong.cs deleted file mode 100644 index ff08ccc4..00000000 --- a/Examples/domain_01/Entitys/AlbumSong.cs +++ /dev/null @@ -1,11 +0,0 @@ -using FreeSql.DataAnnotations; -using System; - -namespace domain_01.Entitys { - public class AlbumSong { - - public Guid AlbumId { get; set; } - - public Guid SongId { get; set; } - } -} diff --git a/Examples/domain_01/Entitys/Singer.cs b/Examples/domain_01/Entitys/Singer.cs deleted file mode 100644 index c51fadd9..00000000 --- a/Examples/domain_01/Entitys/Singer.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace domain_01.Entitys -{ - /// - /// 歌手 - /// - public class Singer - { - public Guid Id { get; set; } - - public string Nickname { get; set; } - - public DateTime RegTime { get; set; } = DateTime.Now; - } -} diff --git a/Examples/domain_01/Entitys/Song.cs b/Examples/domain_01/Entitys/Song.cs deleted file mode 100644 index dec4429a..00000000 --- a/Examples/domain_01/Entitys/Song.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FreeSql.DataAnnotations; -using System; -using System.Collections.Generic; - -namespace domain_01.Entitys { - - /// - /// 歌曲 - /// - public class Song { - - public Guid Id { get; set; } - - public Guid SingerId { get; set; } - public virtual Guid Singer { get; set; } - - public string Name { get; set; } - - public string Url { get; set; } - - public virtual ICollection Albums { get; set; } - - public DateTime RegTime { get; set; } = DateTime.Now; - } -} diff --git a/Examples/domain_01/Program.cs b/Examples/domain_01/Program.cs deleted file mode 100644 index 87dd792e..00000000 --- a/Examples/domain_01/Program.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; - -namespace domain_01 { - public class Program - { - public static void Main(string[] args) - { - CreateWebHostBuilder(args).Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup(); - } -} diff --git a/Examples/domain_01/Properties/launchSettings.json b/Examples/domain_01/Properties/launchSettings.json deleted file mode 100644 index c671858d..00000000 --- a/Examples/domain_01/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:54379/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "repository_01": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:54383/" - } - } -} \ No newline at end of file diff --git a/Examples/domain_01/Startup.cs b/Examples/domain_01/Startup.cs deleted file mode 100644 index 044e7316..00000000 --- a/Examples/domain_01/Startup.cs +++ /dev/null @@ -1,60 +0,0 @@ -using FreeSql; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Swashbuckle.AspNetCore.Swagger; -using System; -using System.Text; - -namespace domain_01 { - public class Startup { - public Startup(IConfiguration configuration, ILoggerFactory loggerFactory) { - Configuration = configuration; - - g.orm = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10") - .UseLogger(loggerFactory.CreateLogger()) - .UseAutoSyncStructure(true) - .Build(); - } - - public IConfiguration Configuration { get; } - - public void ConfigureServices(IServiceCollection services) { - services.AddSingleton(g.orm); - - services.AddMvc(); - services.AddSwaggerGen(options => { - options.SwaggerDoc("v1", new Info { - Version = "v1", - Title = "FreeSql.domain_01 API" - }); - //options.IncludeXmlComments(xmlPath); - }); - } - - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { - Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); - Console.OutputEncoding = Encoding.GetEncoding("GB2312"); - Console.InputEncoding = Encoding.GetEncoding("GB2312"); - - loggerFactory.AddConsole(Configuration.GetSection("Logging")); - loggerFactory.AddDebug(); - - app.UseHttpMethodOverride(new HttpMethodOverrideOptions { FormFieldName = "X-Http-Method-Override" }); - app.UseDeveloperExceptionPage(); - app.UseMvc(); - - app.UseSwagger(); - app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "FreeSql.domain_01 API V1"); - }); - } - } -} - -public static class g { - public static IFreeSql orm { get; set; } -} \ No newline at end of file diff --git a/Examples/domain_01/appsettings.Development.json b/Examples/domain_01/appsettings.Development.json deleted file mode 100644 index e203e940..00000000 --- a/Examples/domain_01/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/Examples/domain_01/appsettings.json b/Examples/domain_01/appsettings.json deleted file mode 100644 index def9159a..00000000 --- a/Examples/domain_01/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/Examples/domain_01/domain_01.csproj b/Examples/domain_01/domain_01.csproj deleted file mode 100644 index e8ad20a8..00000000 --- a/Examples/domain_01/domain_01.csproj +++ /dev/null @@ -1,35 +0,0 @@ - - - - netcoreapp2.1 - InProcess - - - - - - - - - - - - - - - - - - - - Code - - - Code - - - Code - - - - diff --git a/Examples/domain_01/readme.md b/Examples/domain_01/readme.md deleted file mode 100644 index 784648a5..00000000 --- a/Examples/domain_01/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -## 示例项目 domain_01 - -实体:Entitys - -领域:Domains \ No newline at end of file diff --git a/Examples/net461_console_01/App.config b/Examples/net461_console_01/App.config deleted file mode 100644 index ff77f14f..00000000 --- a/Examples/net461_console_01/App.config +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/net461_console_01/Program.cs b/Examples/net461_console_01/Program.cs deleted file mode 100644 index f43ca833..00000000 --- a/Examples/net461_console_01/Program.cs +++ /dev/null @@ -1,43 +0,0 @@ -using FreeSql.DataAnnotations; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace net46_console_01 { - class Program { - static void Main(string[] args) { - - var orm = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10") - //.UseConnectionString(FreeSql.DataType.MySql, "Data Source=127.0.0.1;Port=3306;User ID=root;Password=root;Initial Catalog=cccddd;Charset=utf8;SslMode=none;Max pool size=10") - .UseAutoSyncStructure(true) - .UseConfigEntityFromDbFirst(true) - .Build(); - - var repos = orm.GetGuidRepository(); - - var item = repos.Insert(new Song22()); - Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(item)); - - item.Title = "xxx"; - repos.Update(item); - Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(item)); - - Console.WriteLine(repos.UpdateDiy.Where(a => a.Id == item.Id).Set(a => a.Clicks + 1).ToSql()); - repos.UpdateDiy.Where(a => a.Id == item.Id).Set(a => a.Clicks + 1).ExecuteAffrows(); - - item = repos.Find(item.Id); - Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(item)); - } - } - - public class Song22 { - - public Guid Id { get; set; } - public string Title { get; set; } - - public int Clicks { get; set; } = 10; - } -} diff --git a/Examples/net461_console_01/Properties/AssemblyInfo.cs b/Examples/net461_console_01/Properties/AssemblyInfo.cs deleted file mode 100644 index f0d414c9..00000000 --- a/Examples/net461_console_01/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("net46_console_01")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("net46_console_01")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("0637a778-338e-4096-b439-32b18306c75f")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 -// 方法是按如下所示使用“*”: : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Examples/net461_console_01/net461_console_01.csproj b/Examples/net461_console_01/net461_console_01.csproj deleted file mode 100644 index 0b542f52..00000000 --- a/Examples/net461_console_01/net461_console_01.csproj +++ /dev/null @@ -1,284 +0,0 @@ - - - - - Debug - AnyCPU - {0637A778-338E-4096-B439-32B18306C75F} - Exe - net46_console_01 - net46_console_01 - v4.6.1 - 512 - true - true - - - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\packages\CS-Script.Core.1.0.6\lib\netstandard2.0\CSScriptLib.dll - - - ..\..\packages\Google.Protobuf.3.5.1\lib\net45\Google.Protobuf.dll - - - ..\..\packages\Microsoft.CodeAnalysis.Common.2.10.0\lib\netstandard1.3\Microsoft.CodeAnalysis.dll - - - ..\..\packages\Microsoft.CodeAnalysis.CSharp.2.10.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.dll - - - ..\..\packages\Microsoft.CodeAnalysis.CSharp.Scripting.2.10.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.Scripting.dll - - - ..\..\packages\Microsoft.CodeAnalysis.Scripting.Common.2.10.0\lib\netstandard1.3\Microsoft.CodeAnalysis.Scripting.dll - - - ..\..\packages\Microsoft.DotNet.PlatformAbstractions.2.1.0\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\..\packages\Microsoft.Extensions.Caching.Abstractions.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll - - - ..\..\packages\Microsoft.Extensions.Caching.Memory.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll - - - ..\..\packages\Microsoft.Extensions.Configuration.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll - - - ..\..\packages\Microsoft.Extensions.Configuration.Abstractions.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll - - - ..\..\packages\Microsoft.Extensions.Configuration.Binder.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll - - - ..\..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.1.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll - - - ..\..\packages\Microsoft.Extensions.DependencyModel.2.1.0\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\..\packages\Microsoft.Extensions.Logging.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Logging.dll - - - ..\..\packages\Microsoft.Extensions.Logging.Abstractions.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll - - - ..\..\packages\Microsoft.Extensions.Logging.Debug.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Logging.Debug.dll - - - ..\..\packages\Microsoft.Extensions.Options.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Options.dll - - - ..\..\packages\Microsoft.Extensions.Primitives.2.1.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll - - - ..\..\packages\MySql.Data.8.0.15\lib\net452\MySql.Data.dll - - - ..\..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\..\packages\Npgsql.4.0.5\lib\net451\Npgsql.dll - - - ..\..\packages\Npgsql.LegacyPostgis.4.0.5\lib\net45\Npgsql.LegacyPostgis.dll - - - ..\..\packages\Oracle.ManagedDataAccess.Core.2.18.3\lib\netstandard2.0\Oracle.ManagedDataAccess.dll - - - ..\..\packages\SafeObjectPool.1.0.14\lib\netstandard2.0\SafeObjectPool.dll - - - - ..\..\packages\System.AppContext.4.3.0\lib\net46\System.AppContext.dll - True - True - - - ..\..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll - - - ..\..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll - - - - - - - - ..\..\packages\System.Console.4.3.0\lib\net46\System.Console.dll - True - True - - - - ..\..\packages\System.Data.SqlClient.4.6.0\lib\net461\System.Data.SqlClient.dll - - - ..\..\packages\System.Data.SQLite.Core.1.0.110.0\lib\net46\System.Data.SQLite.dll - - - ..\..\packages\System.Diagnostics.FileVersionInfo.4.3.0\lib\net46\System.Diagnostics.FileVersionInfo.dll - True - True - - - ..\..\packages\System.Diagnostics.StackTrace.4.3.0\lib\net46\System.Diagnostics.StackTrace.dll - True - True - - - - - ..\..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll - True - True - - - ..\..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll - True - True - - - ..\..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll - True - True - - - - ..\..\packages\System.Memory.4.5.2\lib\netstandard2.0\System.Memory.dll - - - - ..\..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll - - - ..\..\packages\System.Reflection.Metadata.1.6.0\lib\netstandard2.0\System.Reflection.Metadata.dll - - - ..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll - - - ..\..\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll - True - True - - - ..\..\packages\System.Runtime.Loader.4.3.0\lib\netstandard1.5\System.Runtime.Loader.dll - - - ..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll - True - True - - - ..\..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll - True - True - - - ..\..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll - True - True - - - ..\..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll - True - True - - - ..\..\packages\System.Text.Encoding.CodePages.4.3.0\lib\net46\System.Text.Encoding.CodePages.dll - - - ..\..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll - - - ..\..\packages\System.Threading.Thread.4.3.0\lib\net46\System.Threading.Thread.dll - True - True - - - - ..\..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - - ..\..\packages\System.Xml.ReaderWriter.4.3.0\lib\net46\System.Xml.ReaderWriter.dll - True - True - - - ..\..\packages\System.Xml.XmlDocument.4.3.0\lib\net46\System.Xml.XmlDocument.dll - True - True - - - ..\..\packages\System.Xml.XPath.4.3.0\lib\net46\System.Xml.XPath.dll - True - True - - - ..\..\packages\System.Xml.XPath.XDocument.4.3.0\lib\net46\System.Xml.XPath.XDocument.dll - True - True - - - - - - - - - - - - - - - - - {ac47670e-90bb-4502-9965-0739bdf6fe2e} - FreeSql.Repository - - - {af9c50ec-6eb6-494b-9b3b-7edba6fd0ebb} - FreeSql - - - - - - - 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 - - - - \ No newline at end of file diff --git a/Examples/net461_console_01/packages.config b/Examples/net461_console_01/packages.config deleted file mode 100644 index 7d9b1e8f..00000000 --- a/Examples/net461_console_01/packages.config +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Examples/repository_01/Controllers/SongController.cs b/Examples/repository_01/Controllers/SongController.cs deleted file mode 100644 index d162c33c..00000000 --- a/Examples/repository_01/Controllers/SongController.cs +++ /dev/null @@ -1,98 +0,0 @@ -using FreeSql; -using Microsoft.AspNetCore.Mvc; -using restful.Entitys; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace restful.Controllers { - - public class SongRepository : GuidRepository { - public SongRepository(IFreeSql fsql) : base(fsql) { - } - } - - [Route("restapi/[controller]")] - public class SongsController : Controller { - - BaseRepository _songRepository; - - public class xxxx { - public int Id { get; set; } - - public bool IsDeleted { get; set; } - } - - - - public SongsController(IFreeSql fsql, - GuidRepository repos1, - GuidRepository repos2, - - DefaultRepository repos11, - DefaultRepository repos21, - - BaseRepository repos3, BaseRepository repos4, - IBasicRepository repos31, IBasicRepository repos41, - IReadOnlyRepository repos311, IReadOnlyRepository repos411, - - SongRepository reposSong - ) { - _songRepository = repos4; - - //test code - var curd1 = fsql.GetRepository(); - var curd2 = fsql.GetRepository(); - var curd3 = fsql.GetRepository(); - var curd4 = fsql.GetGuidRepository(); - - Console.WriteLine(repos1.Select.ToSql()); - Console.WriteLine(reposSong.Select.ToSql()); - - Console.WriteLine(repos2.Select.ToSql()); - Console.WriteLine(repos21.Select.ToSql()); - - using (reposSong.DataFilter.DisableAll()) { - Console.WriteLine(reposSong.Select.ToSql()); - } - } - - [HttpGet] - public Task> GetItems([FromQuery] string key, [FromQuery] int page = 1, [FromQuery] int limit = 20) { - return _songRepository.Select.WhereIf(!string.IsNullOrEmpty(key), a => a.Title.Contains(key)).Page(page, limit).ToListAsync(); - } - - [HttpGet("{id}")] - public Task GetItem([FromRoute] int id) { - return _songRepository.FindAsync(id); - } - - public class ModelSong { - public string title { get; set; } - } - - [HttpPost, ProducesResponseType(201)] - public Task Create([FromBody] ModelSong model) { - return _songRepository.InsertAsync(new Song { Title = model.title }); - } - - [HttpPut("{id}")] - public Task Update([FromRoute] int id, [FromBody] ModelSong model) { - return _songRepository.UpdateAsync(new Song { Id = id, Title = model.title }); - } - - [HttpPatch("{id}")] - async public Task UpdateDiy([FromRoute] int id, [FromForm] string title) { - var up = _songRepository.UpdateDiy.Where(a => a.Id == id); - if (!string.IsNullOrEmpty(title)) up.Set(a => a.Title, title); - var ret = await up.ExecuteUpdatedAsync(); - return ret.FirstOrDefault(); - } - - [HttpDelete("{id}"), ProducesResponseType(204)] - public Task Delete([FromRoute] int id) { - return _songRepository.DeleteAsync(a => a.Id == id); - } - } -} diff --git a/Examples/repository_01/Entitys/Song.cs b/Examples/repository_01/Entitys/Song.cs deleted file mode 100644 index 8c8a8a14..00000000 --- a/Examples/repository_01/Entitys/Song.cs +++ /dev/null @@ -1,11 +0,0 @@ -using FreeSql.DataAnnotations; -using repository_01; - -namespace restful.Entitys { - public class Song { - - [Column(IsIdentity = true)] - public int Id { get; set; } - public string Title { get; set; } - } -} diff --git a/Examples/repository_01/Program.cs b/Examples/repository_01/Program.cs deleted file mode 100644 index da7591b3..00000000 --- a/Examples/repository_01/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; - -namespace repository_01 -{ - public class Program - { - public static void Main(string[] args) - { - CreateWebHostBuilder(args).Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup(); - } -} diff --git a/Examples/repository_01/Properties/launchSettings.json b/Examples/repository_01/Properties/launchSettings.json deleted file mode 100644 index 0426ce6f..00000000 --- a/Examples/repository_01/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:52751/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "repository_01": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:52752/" - } - } -} \ No newline at end of file diff --git a/Examples/repository_01/Startup.cs b/Examples/repository_01/Startup.cs deleted file mode 100644 index dab5e76c..00000000 --- a/Examples/repository_01/Startup.cs +++ /dev/null @@ -1,116 +0,0 @@ -using Autofac; -using Autofac.Extensions.DependencyInjection; -using FreeSql; -using FreeSql.DataAnnotations; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using restful.Entitys; -using Swashbuckle.AspNetCore.Swagger; -using System; -using System.Diagnostics; -using System.Linq; -using System.Text; - -namespace repository_01 { - - /// - /// 用户密码信息 - /// - public class Sys1UserLogOn { - [Column(IsPrimary = true, Name = "Id")] - public Guid UserLogOnId { get; set; } - public virtual Sys1User User { get; set; } - } - public class Sys1User { - [Column(IsPrimary = true, Name = "Id")] - public Guid UserId { get; set; } - public virtual Sys1UserLogOn UserLogOn { get; set; } - } - - public class Startup { - public Startup(IConfiguration configuration, ILoggerFactory loggerFactory) { - Configuration = configuration; - - Fsql = new FreeSql.FreeSqlBuilder() - .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10") - .UseLogger(loggerFactory.CreateLogger()) - .UseAutoSyncStructure(true) - .UseLazyLoading(true) - - .UseMonitorCommand(cmd => Trace.WriteLine(cmd.CommandText)) - .Build(); - - var sysu = new Sys1User { }; - Fsql.Insert().AppendData(sysu).ExecuteAffrows(); - Fsql.Insert().AppendData(new Sys1UserLogOn { UserLogOnId = sysu.UserId }).ExecuteAffrows(); - var a = Fsql.Select().ToList(); - var b = Fsql.Select().Any(); - } - - public IConfiguration Configuration { get; } - public static IFreeSql Fsql { get; private set; } - - public void ConfigureServices(IServiceCollection services) { - - //services.AddTransient(s => s.) - - services.AddMvc(); - services.AddSwaggerGen(options => { - options.SwaggerDoc("v1", new Info { - Version = "v1", - Title = "FreeSql.RESTful API" - }); - //options.IncludeXmlComments(xmlPath); - }); - - services.AddSingleton(Fsql); - - services.AddFreeRepository(filter => filter - //.Apply("test", a => a.Title == DateTime.Now.ToString() + System.Threading.Thread.CurrentThread.ManagedThreadId) - .Apply("softdelete", a => a.IsDeleted == false) - , - this.GetType().Assembly - ); - - - //var builder = new ContainerBuilder(); - - //builder.RegisterFreeRepository(filter => filter - // //.Apply("test", a => a.Title == DateTime.Now.ToString() + System.Threading.Thread.CurrentThread.ManagedThreadId) - // .Apply("softdelete", a => a.IsDeleted == false) - // , - // this.GetType().Assembly - //); - - //builder.Populate(services); - //var container = builder.Build(); - - //return new AutofacServiceProvider(container); - } - - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { - Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); - Console.OutputEncoding = Encoding.GetEncoding("GB2312"); - Console.InputEncoding = Encoding.GetEncoding("GB2312"); - - loggerFactory.AddConsole(Configuration.GetSection("Logging")); - loggerFactory.AddDebug(); - - app.UseHttpMethodOverride(new HttpMethodOverrideOptions { FormFieldName = "X-Http-Method-Override" }); - app.UseDeveloperExceptionPage(); - app.UseMvc(); - - app.UseSwagger(); - app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "FreeSql.RESTful API V1"); - }); - } - } - - public interface ISoftDelete { - bool IsDeleted { get; set; } - } -} diff --git a/Examples/repository_01/appsettings.Development.json b/Examples/repository_01/appsettings.Development.json deleted file mode 100644 index 86f6b8f7..00000000 --- a/Examples/repository_01/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Warning", - "Microsoft": "Warning" - } - } -} diff --git a/Examples/repository_01/appsettings.json b/Examples/repository_01/appsettings.json deleted file mode 100644 index def9159a..00000000 --- a/Examples/repository_01/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/Examples/repository_01/repository_01.csproj b/Examples/repository_01/repository_01.csproj deleted file mode 100644 index 7ac6fd4d..00000000 --- a/Examples/repository_01/repository_01.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - netcoreapp2.1 - InProcess - - - - - - - - - - - - - - diff --git a/FreeSql.Repository/FreeSql.Repository.csproj b/FreeSql.Repository/FreeSql.Repository.csproj deleted file mode 100644 index 77078e8b..00000000 --- a/FreeSql.Repository/FreeSql.Repository.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - netstandard2.0 - 0.4.11 - YeXiangQin - FreeSql Implementation of General Repository, Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite, and read/write separation、and split table. - https://github.com/2881099/FreeSql/wiki/Repository - FreeSql ORM Repository - true - - - - - - - diff --git a/FreeSql.Tests/FreeSql.Tests.csproj b/FreeSql.Tests/FreeSql.Tests.csproj index 30abb7c1..78b3314d 100644 --- a/FreeSql.Tests/FreeSql.Tests.csproj +++ b/FreeSql.Tests/FreeSql.Tests.csproj @@ -7,13 +7,13 @@ + - diff --git a/FreeSql.sln b/FreeSql.sln index 62ad8664..87e56fa9 100644 --- a/FreeSql.sln +++ b/FreeSql.sln @@ -22,14 +22,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "restful", "Examples\restful EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "efcore_to_freesql", "Examples\efcore_to_freesql\efcore_to_freesql.csproj", "{B93981B8-3295-4EDD-B314-BCA77B6BF37A}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSql.Repository", "FreeSql.Repository\FreeSql.Repository.csproj", "{AC47670E-90BB-4502-9965-0739BDF6FE2E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "repository_01", "Examples\repository_01\repository_01.csproj", "{C9940A46-D265-4088-9561-5A42ACEDA7AE}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "domain_01", "Examples\domain_01\domain_01.csproj", "{A23D0455-CA7B-442D-827E-C4C7E84F9084}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net461_console_01", "Examples\net461_console_01\net461_console_01.csproj", "{0637A778-338E-4096-B439-32B18306C75F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "orm_vs", "Examples\orm_vs\orm_vs.csproj", "{1A5EC2EB-8C2B-4547-8AC6-EB5C0DE0CA81}" EndProject Global @@ -114,54 +106,6 @@ Global {B93981B8-3295-4EDD-B314-BCA77B6BF37A}.Release|x64.Build.0 = Release|Any CPU {B93981B8-3295-4EDD-B314-BCA77B6BF37A}.Release|x86.ActiveCfg = Release|Any CPU {B93981B8-3295-4EDD-B314-BCA77B6BF37A}.Release|x86.Build.0 = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|x64.ActiveCfg = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|x64.Build.0 = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|x86.ActiveCfg = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Debug|x86.Build.0 = Debug|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|Any CPU.Build.0 = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|x64.ActiveCfg = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|x64.Build.0 = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|x86.ActiveCfg = Release|Any CPU - {AC47670E-90BB-4502-9965-0739BDF6FE2E}.Release|x86.Build.0 = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|x64.ActiveCfg = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|x64.Build.0 = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|x86.ActiveCfg = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Debug|x86.Build.0 = Debug|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|Any CPU.Build.0 = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|x64.ActiveCfg = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|x64.Build.0 = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|x86.ActiveCfg = Release|Any CPU - {C9940A46-D265-4088-9561-5A42ACEDA7AE}.Release|x86.Build.0 = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|x64.ActiveCfg = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|x64.Build.0 = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|x86.ActiveCfg = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Debug|x86.Build.0 = Debug|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|Any CPU.Build.0 = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|x64.ActiveCfg = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|x64.Build.0 = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|x86.ActiveCfg = Release|Any CPU - {A23D0455-CA7B-442D-827E-C4C7E84F9084}.Release|x86.Build.0 = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|x64.ActiveCfg = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|x64.Build.0 = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|x86.ActiveCfg = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Debug|x86.Build.0 = Debug|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|Any CPU.Build.0 = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|x64.ActiveCfg = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|x64.Build.0 = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|x86.ActiveCfg = Release|Any CPU - {0637A778-338E-4096-B439-32B18306C75F}.Release|x86.Build.0 = Release|Any CPU {1A5EC2EB-8C2B-4547-8AC6-EB5C0DE0CA81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1A5EC2EB-8C2B-4547-8AC6-EB5C0DE0CA81}.Debug|Any CPU.Build.0 = Debug|Any CPU {1A5EC2EB-8C2B-4547-8AC6-EB5C0DE0CA81}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -181,9 +125,6 @@ Global GlobalSection(NestedProjects) = preSolution {83D10565-AF9D-4EDC-8FB8-8C962A843F97} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} {B93981B8-3295-4EDD-B314-BCA77B6BF37A} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} - {C9940A46-D265-4088-9561-5A42ACEDA7AE} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} - {A23D0455-CA7B-442D-827E-C4C7E84F9084} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} - {0637A778-338E-4096-B439-32B18306C75F} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} {1A5EC2EB-8C2B-4547-8AC6-EB5C0DE0CA81} = {94C8A78D-AA15-47B2-A348-530CD86BFC1B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution diff --git a/FreeSql/FreeSql.csproj b/FreeSql/FreeSql.csproj index 56b6d4b0..fcaf330c 100644 --- a/FreeSql/FreeSql.csproj +++ b/FreeSql/FreeSql.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.4.11 + 0.4.12 true YeXiangQin FreeSql is the most convenient ORM in dotnet. It supports Mysql, Postgresql, SqlServer, Oracle and Sqlite.