Search results for query: *

  • Users: Matthieu
  • Content: Threads
  • Order by date
  1. M

    Question Same query fired multiple times EF

    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...
  2. M

    EF returning old data

    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...
  3. M

    Resolved EF VS in memory list and the initialization of navigation properties

    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’...
  4. M

    Beginners question regarding AsEnumerable()

    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...
  5. M

    Question Simple CRUD application to learn the n-tier architecture

    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...
  6. M

    Resolved Question regarding the instantiation of object in class

    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...
  7. M

    Answered explicit cast vs Convert.to()

    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...
  8. M

    The is keyword and its result

    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 =...
  9. M

    Resolved Value types and reference types

    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...
Back
Top Bottom