Skip to content

Instantly share code, notes, and snippets.

View alaawahbah's full-sized avatar

Alaa Wahbah alaawahbah

View GitHub Profile
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"
}
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"
}
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",
const convertToKababCase = (str) => {
if (!str)
return ''
return str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, '-').toLowerCase().replace('"', '');
}
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();
}
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
"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'
// }
<Query Kind="Program" />
void Main()
{
DinnerItems myOrder = DinnerItems.Appetizer | DinnerItems.Entree |
DinnerItems.Beverage | DinnerItems.Dessert;
DinnerItems flagValue = DinnerItems.Entree | DinnerItems.ertert;// | DinnerItems.Beverage;
dotnet --list-runtimes
dotnet --list-sdks
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