neSHa
neSHa
CC#
Created by neSHa on 6/30/2024 in #help
Dictionary translation
No description
8 replies
CC#
Created by neSHa on 7/17/2023 in #help
✅ AutoMapper and Expression
So how do i create map for Expression<Func<T,bool>> to Expression<Func<TDto,bool>> for example
67 replies
CC#
Created by neSHa on 4/14/2023 in #help
❔ i cant return object in JSON correctly in asp.net core web app
i cant serialize object correctly, so im creating asp.net core web app, and i have model structured kie this: public class Card { [Key] public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public double Price { get; set; } public double Price2 { get; set; } public double Price3 { get; set; } public double Price4 { get; set; } public double MorePrices { get; set; } [ValidateNever] public string Image { get; set; } public int Amount { get; set; } [ValidateNever] public int? CardId { get; set; } [ForeignKey("CardId")] [ValidateNever] public Card Parent { get; set; } [ValidateNever] public int TypeId { get; set; } [ForeignKey("TypeId")] [ValidateNever] public Type Type { get; set; } [ValidateNever] public DateTime Created_at { get; set; } [ValidateNever] public DateTime Updated_at { get; set; } [ValidateNever] [NotMapped] public List<Card>? Appendices { get; set; } } and i have API that pull this this item from db, and populate appendices with items that have CardId equals to id of this exec item. Now api returns that object in JSON, and i got completly unreadable JSON format, i use JSON formatter on chrome but it wont format it as other objects without Appendices. i tried fetching it but it wont. What i am doing wrong?
82 replies
CC#
Created by neSHa on 4/2/2023 in #help
✅ ASP.NET CORE with React.js or ASP.NET CORE WEB APP
So im creating web app for local caffe(some menu items like food, drinks, etc... and their prices). And i come up with idea and arhitecture for this project to be one api witch get id and based on that id it will return json data. For example there is categories(Food, Pizza, and now in pizza category there is product, and under product there is topings and other stuff). Now be cause i need just one api to work just what customer will see. I wanted to create that using react, be cause it will be interactive(i dont need to refresh page when going through categories and products...). But there is problem, i also need to create admin section where ower will be adding prices other products... Now i done that part in ASP.NET CORE WEB APP, and i tought i can just create api witch i did, pull json data and boom in view just add react. Now as i can see react to add like that is not simple(or im just stupid). I searched a little bit and see i need to create ASP.NET CORE with React.js to use react. Now what to do, maybe create all over again. Im not expert so every suggestion is plus. Thanks in advance!
13 replies
CC#
Created by neSHa on 1/29/2023 in #help
❔ ✅ node in asp.net
Hello, I'm building asp.net MVC app and in on part I need to run some server side js code Now I tried node service and it worked but not fully. Only one script can be runned at a time, so when one script is processing if any other user try to run it it gives an error. Does anyone have any advice what can I do
30 replies