clever_cottonmouth
clever_cottonmouth
CC#
Created by clever_cottonmouth on 5/2/2024 in #help
Error while pushing Azure ServiceBus connection string on github.
I have added Azure ServiceBus in my project while pushing github don't allow to push to git.
8 replies
CC#
Created by clever_cottonmouth on 4/3/2024 in #help
I am trying to store data in database using EF my code run fine but its not storing data
if (response.IsSuccessStatusCode) { var json = await response.Content.ReadAsStringAsync(); var jsonObject = JsonConvert.DeserializeObject<JToken>(json); if (jsonObject != null && jsonObject.HasValues) { List<Initiative_Goal> ahaInitiative = jsonObject["initiatives"]. Select(x => { Initiative_Goal initiative = new Initiative_Goal();
initiative.InitiativeID = x.Value<long>("value");
return initiative; }).ToList(); foreach (Initiative_Goal initiatives in ahaInitiative) { var existingRecord = await context.Initiative_Goal.FirstOrDefaultAsync(x => x.InitiativeID == initiatives.InitiativeID); if (existingRecord == null) { fullAPIList.Add(initiatives); } else { existingRecord.InitiativeID = initiatives.InitiativeID;
//existingRecord.Description = initiatives.Description; }
} await context.SaveChangesAsync(); } else { Console.WriteLine("No Aha data found in the response."); }
4 replies
CC#
Created by clever_cottonmouth on 3/28/2024 in #help
Not able to debug
When debugging my app, I can observe the value when hovering the mouse, but unfortunately, it doesn't display in the console.
4 replies
CC#
Created by clever_cottonmouth on 3/27/2024 in #help
Not able to store data in database
27 replies