This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://localhost:20215/connect/token | |
{ | |
"grant_type": "password", | |
"client_id": "Angular", | |
"username": "admin", | |
"password": "1q2w3E*", | |
"scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService UnderwriterService DealerService" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://localhost:20215/connect/token | |
{ | |
"grant_type": "password", | |
"client_id": "Angular", | |
"username": "****", | |
"password": "*****", | |
"scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService UnderwriterService DealerService" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if you got key not found | |
https://stackoverflow.com/questions/57012001/invalidoperationexception-key-type-not-specified-microsoft-aspnetcore-apiautho | |
For File | |
"IdentityServer": { | |
"Key": { | |
"Type": "File", | |
"FilePath": "C:\cert.pfx", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const convertToKababCase = (str) => { | |
if (!str) | |
return '' | |
return str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, '-').toLowerCase().replace('"', ''); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
// var asd = Directory.GetDirectories(@"D:\MyWork", "*.*", SearchOption.AllDirectories); | |
// | |
// var asdad1 = asd.Where(t =>t.EndsWith("node_modules") && (t.IndexOf("node_modules")==t.LastIndexOf("node_modules") && t.IndexOf("node_modules")!=-1)).ToList(); | |
// asdad1.Dump(); | |
GetRootDirectoryByName(@"D:\MyWork","node_modules").Dump(); | |
GetAllSubDirectory(@"D:\MyWork").Dump(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET EF_CONNECTIONSTRING="Server=(localdb)\\mssqllocaldb;Database=aspnet-BlazorApp1-723203BA-B167-4E72-BF83-6B7DDA6E8865;Trusted_Connection=True;MultipleActiveResultSets=true" | |
dotnet ef database update --context ElsaContext | |
dotnet tool install --global dotnet-ef --version 6.0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Http failure during parsing for https://grants-requests.mbrhe.gov.ae/getEnvConfig" | |
in environment.prod.ts file | |
comment this to solve error | |
// remoteEnv: { | |
// url: '/getEnvConfig', | |
// mergeStrategy: 'deepmerge' | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Program" /> | |
void Main() | |
{ | |
DinnerItems myOrder = DinnerItems.Appetizer | DinnerItems.Entree | | |
DinnerItems.Beverage | DinnerItems.Dessert; | |
DinnerItems flagValue = DinnerItems.Entree | DinnerItems.ertert;// | DinnerItems.Beverage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet --list-runtimes | |
dotnet --list-sdks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update-Database -Script -SourceMigration: <pointFromWichYouWantToStartWithGeneration> -TargetMigration: <pointWhereToEndWithGeneration> | |
Update-Database -Script -SourceMigration: $InitialDatabase | |
Script-Migration -From <PreviousMigration> -To <LastMigration> //trying this and work | |
Script-Migration -From <PreviousMigration> | |
Script-Migration -From add-parent-id-to-contract |
NewerOlder