I'm building a very simple CRUD web-application (ASP.NET MVC) for tennisplayers and the tournaments they can participate.
On a specific page I want to show all tournaments in the database with a title at the top op the page 'All Tournaments' with between brackets the amount of records in the...
Hi everyone,
I'm making a very simple CRUD console application using EF and sqlite.
I have 3 domain model classes, being: Player, Tournament and TournamentEnrollment
public class Player
{
[Key]
public int Id { get; set; }
[Required]
public string...
I have a question regarding navigation properties in EF and it's initialization. I created a small case to clarify the issue I'm dealing with. Sorry for the extreme long post but I like to be clear :).
Under my InMemoryRepository class I created 2 lists, being ‘Tickets’ and ‘TicketResponses’...
I'm following a EF Core (beginners) course and there is something I don't understand.
Below you can find the most important classes of a little excercise we got, to get to know EF core and the intent.
public class Student
{
public int StudentId { get; set; }
public string...
Hi everyone!
I want to use the n-layer architecture for a very simple CRUD console application. I have a domain layer, presentation layer (a console application), a business layer and a data acces layer.
If I'm right, the DAL is used to interact with a database, and the BL is a layer between the...
Hi erveryone,
I got a question I want to clarify by using an example.
I have a Club class and a TennisPlayer class. A club can have many tennisplayers as members to that club, and a tennisplayer can only be member at one club at a time.
My classes would look like this. I simplified the classes...
Hi!
Can someone explain me the difference between:
class Program
{
static void Main(string[] args)
{
int number = 10;
double dNumber = System.Convert.ToDouble(number);
}
}
And:
class Program
{
static void...
Hi everyone,
I started learning C# and got totaly confused by the behaviour of the is keyword.
I understand that in the example below the value for b will be true:
int number = 10;
bool b = number is int;
In underneath example the value for for b will be false:
int number = 10;
bool b =...
Hi everyone,
First question here...
If I'm correct, String is a reference datatype, right?
See my code below:
String nameOne = "Matthew";
String nameTwo = nameOne;
nameOne = "Andrew";
In the end, I should expect both nameOne and nameTwo to be Andrew...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.