解决方案:我创建了一个带参数的SQLCommand查询,然后将SQLCommand.CommandText放入一个字符串并将其返回(返回给将要处理该查询的业务逻辑)sQuery = "select * from xy where x like '%@txtNameParameter%'";
retur
我有一个通用接口: T Status { set; get; }User is Null"); Status = status; }我想注册我的接口,这样我就可以使用DI(依赖注入),如果我的类和接口都是通用的,我会将它们注册为:
services.AddScoped(typeof(IGenericR