Really enjoying this series so far! Thanks so much! A couple questions I have: 1. What does the ? after the data type signify? I assume it means it *might* be that data type? Also - at the end you mention how you gave thought to how you used "object model" thinking to logically think about your tables and the like. I think a video on how you approach a project such as this one and how you work through things ahead of time before writing your code would be a very instructional and fantastic video to see.
called a null referenence/null coalescing. I have a video on it. Also, might consider making an abstraction video that includes entity framework tables. Thanks for the idea!
@@TeddySmithDev I don't think it is null coalescing, just a nullable value declaration. Null coalescing is different - both use a ? though. Thanks for the vid, Teddy. Very helpful.
It means the type is nullable. As in, you can state that value as being = null. Null coalescing uses a ?? to create an inline version of "if var == null do this else do that"
I recommend you edit the videos more to the point, this will make your videos shorter and more valuable. Im going through the series, but its one thing i noticed would improve your videos allot.
Hey, Teddy, I think you made a mistake. Your AppUser foreign key uses a string instead of an integer. I've checked the repo and it's the same there. I haven't watched the whole series yet, so I'm not sure if it's a mistake or If you have a reason for choosing that type.
Back with an update, it wasn't an error. The AppUser class inherited some properties from IdentityUsers (the primary key included). If it were defined by us, then an int would have been enough. As it is, it's a string.
Bro! When you opened SQL Management Studio, the things you created like Id, Street, City, State is showing in the database but not mine, what is the reason, do I have to connect my project to SQL server before with that code?? Please guide... Thanks
Is it normal to feel lost and confused in this video i felt like too much information.. aldo after finishing the c# is this course is the next step or should i watch another playlist
Hey Teddy great course. I just wanted to know if there is a way to select or add multiple tags? I tried changing the select input to accept multiple but the table only recieves one.
@@TeddySmithDev Hey, no errors it's weird it just selects the first option clicked on from the multi select drop down. I'm sure it's something to do with the logic in post and maybe needs to loop through so that each category is added as a new record. I just don't know enough yet 😃
Very difficult to follow. You are here, there and everywhere. Like you trying to show off that you can type and talk at same time.. Try to stay on point mate 🙂
@@1Eagler if you want to create for example User and Admin objects (admin will have some different fields and methods) if you have one class for everything admin and user will have same fields and methods and users would be allowed to do everything admin can do(there will be no way for computer to distinguish them)
@@1Eagler if you have multiple classes in one file it can be hard to read(if it's small project than it's not a problem), separation of concerns and encapsulation/abstraction might be another issues, compilation time might be longer, if you need to have field like "id" for each class it'll be naming mess
The relationship from 'Club.AppUser' to 'AppUser.Clubs' with foreign key properties {'AppUserId' : string} cannot target the primary key {'Id' : int} because it is not compatible. Configure a principal key or a set of foreign key properties with compatible types for this relationship. if have copy-paste classes but I am facing this error. Please Guide me.
post screenshot in discord for quick help. Can't say exact but you need to set foreign key and primary key relationship with sql query. Google "set foreign key sql server".
thank for making the vid straight to the point and not 2hr long vid where i gave-up half way
Hello from Brazil..
Thanks for sharing bro 🚀🚀🚀
Really enjoying this series so far! Thanks so much! A couple questions I have:
1. What does the ? after the data type signify? I assume it means it *might* be that data type?
Also - at the end you mention how you gave thought to how you used "object model" thinking to logically think about your tables and the like. I think a video on how you approach a project such as this one and how you work through things ahead of time before writing your code would be a very instructional and fantastic video to see.
called a null referenence/null coalescing. I have a video on it. Also, might consider making an abstraction video that includes entity framework tables. Thanks for the idea!
@@TeddySmithDev I don't think it is null coalescing, just a nullable value declaration. Null coalescing is different - both use a ? though.
Thanks for the vid, Teddy. Very helpful.
It means the type is nullable. As in, you can state that value as being = null. Null coalescing uses a ?? to create an inline version of "if var == null do this else do that"
? - > could be nullable
Still an awesome training. Thanks
Jumping from one thing to other.
Thanx, Teddy, for an amzing series!
Thank you for watching!!!!!
Thanks for the playlist buddy
where is the Database example, i can't to contitue without Database
I'm really appreciate your efforts, keep going Teddy, wish you all the best
Hey jolly good tutorial series mate. As a cyclist myself really enjoying building this app.
Cheers!
Thanks for the playlist.
I recommend you edit the videos more to the point, this will make your videos shorter and more valuable. Im going through the series, but its one thing i noticed would improve your videos allot.
Hey, Teddy, I think you made a mistake. Your AppUser foreign key uses a string instead of an integer. I've checked the repo and it's the same there. I haven't watched the whole series yet, so I'm not sure if it's a mistake or If you have a reason for choosing that type.
Back with an update, it wasn't an error. The AppUser class inherited some properties from IdentityUsers (the primary key included). If it were defined by us, then an int would have been enough. As it is, it's a string.
How connect database to this App ???
super helpful
TY!
I think race to user should be many to many, also club to user should be many to many. I loved how you used the enums also, so thanks for that.
Lmao true. Thanks!
Bro! When you opened SQL Management Studio, the things you created like Id, Street, City, State is showing in the database but not mine, what is the reason, do I have to connect my project to SQL server before with that code?? Please guide... Thanks
In upcoming video, I just showed that to introduce concept of model properties being columns in db. Sorry for confusion.
Is it normal to feel lost and confused in this video i felt like too much information.. aldo after finishing the c# is this course is the next step or should i watch another playlist
same...
we will get this im sure
Thx alot big bro
Perfect
Can you Explain how connect database to project?
Actually I’m just using sqlite :(
Heyyy what does a enum do when we add it to the model fields?
Are the playlists, A start to finish tutorial for building the application?
Yes
I think the relationship between the user and both club and race should be many to many relationship why you did it as one to many
How you connect database ? İ wish you show these parts
Thanks
Hi, can you explain what is the use of ICollections in the AppUser model
Because the relation between the user and both the race ,club is 1:m which means
That one user can participate in many races and club
Where can I get the Database Script or .bak?
Wait there's already a hat change? No but seriously greatcontent so far
i actually laughed out loud at this lol
Interesting.
POCO = Plain Old Class Objects
Hey Teddy great course. I just wanted to know if there is a way to select or add multiple tags? I tried changing the select input to accept multiple but the table only recieves one.
Is there any error? Which specific value does it store?
@@TeddySmithDev Hey, no errors it's weird it just selects the first option clicked on from the multi select drop down. I'm sure it's something to do with the logic in post and maybe needs to loop through so that each category is added as a new record. I just don't know enough yet 😃
where is the club codes to copy?
public int Id { get; set; }
public string? Title { get; set; }
public string? Description { get; set; }
public string? Image { get; set; }
[ForeignKey("Address")]
public int? AddressId { get; set; }
public Address? Address { get; set; }
public ClubCategory ClubCategory { get; set; }
[ForeignKey("AppUser")]
public string? AppUserId { get; set; }
public AppUser? AppUser { get; set; }
Very difficult to follow. You are here, there and everywhere. Like you trying to show off that you can type and talk at same time.. Try to stay on point mate 🙂
Why not putting all classes in one codefile?
It's possible, but it's messy
@666kabauter is it? I prefer choosing the class from the dropdown list than having to open 10 files and browse around the files.
@@1Eagler if you want to create for example User and Admin objects (admin will have some different fields and methods) if you have one class for everything admin and user will have same fields and methods and users would be allowed to do everything admin can do(there will be no way for computer to distinguish them)
@@tprnbs not one class but one file with similar classes
@@1Eagler if you have multiple classes in one file it can be hard to read(if it's small project than it's not a problem), separation of concerns and encapsulation/abstraction might be another issues, compilation time might be longer, if you need to have field like "id" for each class it'll be naming mess
Plain Old CLR Objects (POCO)
where can i get the SQL
EF Core. That is coming up in next videos.
Hey. What's the ? in the return type
It is likely a null operator
@@TeddySmithDev Oh yeah so it in your other comment. Thanks for the great content!
7:47
Damn you don't explain so much lol hahaha why you put foreign key and primary key if by default you have them with that in the database?
Hi, can you give me database ? (I subscribed :))
You gotta make your database buddy!
@@TeddySmithDev yeah, i think i'll understand when i get a little further. Thank you
The relationship from 'Club.AppUser' to 'AppUser.Clubs' with foreign key properties {'AppUserId' : string} cannot target the primary key {'Id' : int} because it is not compatible. Configure a principal key or a set of foreign key properties with compatible types for this relationship.
if have copy-paste classes but I am facing this error. Please Guide me.
post screenshot in discord for quick help. Can't say exact but you need to set foreign key and primary key relationship with sql query. Google "set foreign key sql server".