v3.5.100-preview20240725 #1830 #1861 #1208

This commit is contained in:
2881099
2024-07-25 01:32:05 +08:00
parent 86669a2d7f
commit d8965d5749
49 changed files with 223 additions and 174 deletions

View File

@ -198,7 +198,7 @@ namespace base_entity
public class SongRepository : BaseRepository<TUserImg, int>
{
public SongRepository(IFreeSql fsql) : base(fsql, null, null)
public SongRepository(IFreeSql fsql) : base(fsql)
{
//fsql.CodeFirst.Entity<TUserImg>(a =>
// {
@ -706,7 +706,6 @@ namespace base_entity
var testRepo = fsql2.GetRepository<object>();
testRepo.AsType(table.Type);
testRepo.Insert(area1);
testRepo.SaveMany(area1, "children");

View File

@ -59,12 +59,7 @@ namespace repository_01
services.AddControllersWithViews();
services.AddSingleton<IFreeSql>(Fsql);
services.AddFreeRepository(filter =>
{
filter
//.Apply<Song>("test", a => a.Title == DateTime.Now.ToString() + System.Threading.Thread.CurrentThread.ManagedThreadId)
.Apply<ISoftDelete>("softdelete", a => a.IsDeleted == false);
}, this.GetType().Assembly);
services.AddFreeRepository(this.GetType().Assembly);
}
public void Configure(IApplicationBuilder app)