Rename
Rename
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
thanks again
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
makes sense, didn't think of that
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
so you'd say there's no need with making that ShiftService a Singleton or something like that?
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
thanks, I'll go ahead with that ShiftService then
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
exactly
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
since I could add the getShift method in a ShiftService
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
or are service -to-service dependencies not good
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
would it make sense to inject a ShiftService in this Service?
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
my issue is I need to use those Shifts a lot and not sure the service is the best way to do it, I don't know if what I'm saying makes sense to you lol
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
I added that myself actually, since I'm moving it to .net 8
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
my issue with that is I'll have to use GetShift() method in many other places so I would have to duplicate that code. I have not used clean architecture before so I can't quite grasp what the setup should be
33 replies
CC#
Created by Rename on 10/8/2024 in #help
How to setup shared/common data in a web app
No description
33 replies
CC#
Created by Rename on 6/13/2024 in #help
"Duplicate property" Entity Framework 8 Error
No description
10 replies
CC#
Created by Rename on 6/13/2024 in #help
"Duplicate property" Entity Framework 8 Error
I did, thats how that class AlternativeShift was created initially. I simply added the column data annotations. Used to work before!
10 replies
CC#
Created by Rename on 6/13/2024 in #help
"Duplicate property" Entity Framework 8 Error
But eitherway even removing the Column annotation the same error pops up!
10 replies
CC#
Created by Rename on 6/13/2024 in #help
"Duplicate property" Entity Framework 8 Error
well, it's named as Rotation in the DB, which is why I'm adding that. The deal is that it was a legacy website which I started to update to .net 8
10 replies
CC#
Created by Rename on 6/13/2024 in #help
"Duplicate property" Entity Framework 8 Error
this is my AlternativeShift class: and this is my AlternativeShift class:
namespace Domain
{
using System;
using System.ComponentModel.DataAnnotations.Schema;

public class AlternativeShift
{
public Guid Id { get; set; }

[Column("Rotation")]
public Guid RotationId { get; set; }

[Column("Shift")]
public Guid ShiftId { get; set; }

[Column("Weekday")]
public Guid? WeekdayId { get; set; }

public Weekday Weekday { get; set; }

public Rotation Rotation { get; set; }

public Shift Shift { get; set; }
}
}
namespace Domain
{
using System;
using System.ComponentModel.DataAnnotations.Schema;

public class AlternativeShift
{
public Guid Id { get; set; }

[Column("Rotation")]
public Guid RotationId { get; set; }

[Column("Shift")]
public Guid ShiftId { get; set; }

[Column("Weekday")]
public Guid? WeekdayId { get; set; }

public Weekday Weekday { get; set; }

public Rotation Rotation { get; set; }

public Shift Shift { get; set; }
}
}
10 replies