Click here to Skip to main content
16,020,182 members
Home / Discussions / C#
   

C#

 
QuestionHow I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202326-Jun-24 13:07
Martin Adams 202326-Jun-24 13:07 
AnswerRe: How I write this logic to check if string in a list and also checked ? Pin
OriginalGriff26-Jun-24 18:24
mveOriginalGriff26-Jun-24 18:24 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202327-Jun-24 1:46
Martin Adams 202327-Jun-24 1:46 
AnswerRe: How I write this logic to check if string in a list and also checked ? Pin
Richard Deeming27-Jun-24 2:35
mveRichard Deeming27-Jun-24 2:35 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202327-Jun-24 2:46
Martin Adams 202327-Jun-24 2:46 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
OriginalGriff27-Jun-24 3:55
mveOriginalGriff27-Jun-24 3:55 
QuestionProject structure with C# and EfCore Pin
nwbkn20-Jun-24 4:54
nwbkn20-Jun-24 4:54 
AnswerRe: Project structure with C# and EfCore Pin
jschell20-Jun-24 12:41
jschell20-Jun-24 12:41 
nwbkn wrote:
you can't make A<-->B references in the Visual Studio


You can use interfaces for circular references.

nwbkn wrote:
Customers reference to the DatabaseAccess


Your Data API layer accepts DTOs (Data Transfer Object) and returns DTOs. So 'Customer' is a DTO which the CustomerDB class uses. Although you can choose your own names for the classes.

Create Data Transfer Objects (DTOs) | Microsoft Learn[^]

Be very careful about what you put in a DTO. Probably to start out you should have nothing but properties.
GeneralRe: Project structure with C# and EfCore Pin
nwbkn21-Jun-24 6:35
nwbkn21-Jun-24 6:35 
GeneralRe: Project structure with C# and EfCore Pin
Richard Andrew x6423-Jun-24 4:58
professionalRichard Andrew x6423-Jun-24 4:58 
GeneralRe: Project structure with C# and EfCore Pin
Waqas Khan 202427-Jun-24 2:22
Waqas Khan 202427-Jun-24 2:22 
QuestionC# Newbie, Database Programming Pin
JasonParker33320-Jun-24 2:03
JasonParker33320-Jun-24 2:03 
AnswerRe: C# Newbie, Database Programming Pin
OriginalGriff20-Jun-24 2:09
mveOriginalGriff20-Jun-24 2:09 
GeneralRe: C# Newbie, Database Programming Pin
JasonParker33320-Jun-24 3:18
JasonParker33320-Jun-24 3:18 
GeneralRe: C# Newbie, Database Programming Pin
OriginalGriff20-Jun-24 4:36
mveOriginalGriff20-Jun-24 4:36 
AnswerRe: C# Newbie, Database Programming Pin
Richard MacCutchan24-Jun-24 6:12
mveRichard MacCutchan24-Jun-24 6:12 
GeneralRe: C# Newbie, Database Programming Pin
JasonParker33324-Jun-24 6:18
JasonParker33324-Jun-24 6:18 
GeneralRe: C# Newbie, Database Programming Pin
trønderen24-Jun-24 7:18
trønderen24-Jun-24 7:18 
GeneralRe: C# Newbie, Database Programming Pin
Richard MacCutchan24-Jun-24 7:50
mveRichard MacCutchan24-Jun-24 7:50 
GeneralRe: C# Newbie, Database Programming Pin
trønderen24-Jun-24 8:08
trønderen24-Jun-24 8:08 
GeneralRe: C# Newbie, Database Programming Pin
Richard MacCutchan24-Jun-24 9:33
mveRichard MacCutchan24-Jun-24 9:33 
AnswerRe: C# Newbie, Database Programming Pin
Member 1527072924-Jun-24 9:01
Member 1527072924-Jun-24 9:01 
QuestionWhere To Find This DLL Pin
Kevin Marois11-Jun-24 17:57
professionalKevin Marois11-Jun-24 17:57 
AnswerRe: Where To Find This DLL Pin
Dave Kreskowiak11-Jun-24 18:29
mveDave Kreskowiak11-Jun-24 18:29 
AnswerRe: Where To Find This DLL Pin
OriginalGriff11-Jun-24 18:49
mveOriginalGriff11-Jun-24 18:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.