原创 the seLECT permission was denied on the object types database mssqlsystemresource schema sys

the seLECT permission was denied on the object 'types', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Se

原创 sqlserver 無法建立外鍵

The REFERENCES permission was denied on the object '', database '', schema 'dbo'. 第一運行了命令:GRANT UPDATE,DELETE,INSERT,SE

原创 EF CORE 拼接查詢

public static class PredicateBuilder { public static Expression<Func<T, bool>> True<T>() { return f => true; } pu

原创 fatal: Authentication failed for 'url/_git/xx

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.20.0  

原创 如何使用EF CORE 的first code 來連接已有的數據庫

首先安裝EF的兩個必要的包 > dotnet add package Microsoft.EntityFrameworkCore.SqlServer > dotnet add package Microsoft.EntityFramew

原创 EF CORE DELETE

public void Delete() { testDbContext.Order.Remove(testDbContext.Order.Find(1006));

原创 EF Core Add方式

Add<TEntity>(TEntity entity) AddRange<TEntity>(IEnumerable<TEntity> entities) AddRange<TEntity>(params TEntity[] entiti

原创 .net core 通過Attribute和接口過濾驅動方法

這兩天看了CAP的源碼,感覺自己和大神的差距實在太大,看源碼學到的東西也很多,再也不用每天都是3層架構,一層一層的往下調用。 先說下我看到的只是一點點的CAP的源碼,就看了訂閱這塊,.net core 使用services.AddHost

原创 Powerbi 中如何增加自定義的頁面,並且能夠判斷是否登錄

主要是因爲PBI中無法增加自定義頁面,可以通過服務器上的IIS創建一個相同的主機名+端口號的站點,本來使用的是HTML。但是後來發現,HTML無法獲取到cookie sqlAuthCookie,後來發現這個Cookie 是http onl

原创 通過dotnet 命令添加項目,並且在vs中運行

我們這裏以IdentityServer4來作爲例子 dotnet new -i IdentityServer4.Templates 新建模板 查看模板:dotnet new -l   新建項目: dotnet new is4empt

原创 RabbitMQ 生產者,消費者,持久化,分發方式

.net core 下nuget :RabbitMQ.Client API:https://www.rabbitmq.com/dotnet-api-guide.html RabbitMQ創建exchange的方式一共有4中:direct,

原创 .net core 調用多個服務內的方法,通過一個其他方法統一調用

private IProcessor[] GetProcessors() { var returnedProcessors = new List<IProcessor>

原创 .net core + redis + rabbitMQ+SqlServer秒殺系統

  代碼參考:https://github.com/xiaomifengmaidi/Redis https://www.cnblogs.com/wangrudong003/p/7111789.html

原创 restangular 如何定義多個baseurl

// Fundamental modules import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } f

原创 OAuth2.0 獲取refresh_token

隱式授權流方式不能獲取refresh_token 但是如果需要獲取id_token,則scope =openid,response_type=id_token openid 協議是基於OAuth2.0上的擴展,id_token屬於open