mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	- 移除 Repository.DataFilter 功能通知;#1208
This commit is contained in:
		@@ -10,7 +10,7 @@ using System.Threading.Tasks;
 | 
			
		||||
namespace restful.Controllers
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    public class SongRepository : GuidRepository<Song>
 | 
			
		||||
    public class SongRepository : BaseRepository<Song>
 | 
			
		||||
    {
 | 
			
		||||
        public SongRepository(IFreeSql fsql) : base(fsql)
 | 
			
		||||
        {
 | 
			
		||||
@@ -43,18 +43,6 @@ namespace restful.Controllers
 | 
			
		||||
            Console.Write(reposTest.Select.ToSql());
 | 
			
		||||
 | 
			
		||||
            _songRepository = repos4;
 | 
			
		||||
            //test code
 | 
			
		||||
            var curd1 = fsql.GetRepository<Song, int>();
 | 
			
		||||
            var curd2 = fsql.GetRepository<Song, string>();
 | 
			
		||||
            var curd3 = fsql.GetRepository<Song, Guid>();
 | 
			
		||||
            var curd4 = fsql.GetGuidRepository<Song>();
 | 
			
		||||
 | 
			
		||||
            Console.WriteLine(reposSong.Select.ToSql());
 | 
			
		||||
 | 
			
		||||
            using (reposSong.DataFilter.DisableAll())
 | 
			
		||||
            {
 | 
			
		||||
                Console.WriteLine(reposSong.Select.ToSql());
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [HttpGet]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user