mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
@ -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");
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user