Пікірлер
@LiquidreamUK
@LiquidreamUK 5 күн бұрын
Lots of great tips here that I missed in recent .NET/C# updates. Thanks!
@temp_sach
@temp_sach 6 күн бұрын
awesome video ! use this for reference at work
@arkangello2916
@arkangello2916 6 күн бұрын
Could you explain please, what is the purpose of creating distinct GetProduct model with identical properties as main Product has?
@SertuncSELEN
@SertuncSELEN 6 күн бұрын
awesome, thank you
@RoundTheCode
@RoundTheCode 6 күн бұрын
You're welcome!
@nkwojikenneth
@nkwojikenneth 11 сағат бұрын
Good
@nkwojikenneth
@nkwojikenneth 11 сағат бұрын
Link to your videos?
@10Totti
@10Totti 6 күн бұрын
Great Tutorial thanks!
@RoundTheCode
@RoundTheCode 6 күн бұрын
You're welcome!
@DickBakerSql
@DickBakerSql 6 күн бұрын
at offset=7:40 you labouriously refactor manually to Primary Constructor, but the useful VS lightbulb can do all that heavy-lifting for you at offset=8:06 you offer short-hand code of Employee employee = new(new(9, 0, 0), new(17, 0, 0)); whereas in your website you suggest the long-hand code Employee employee = new(new TimeSpan(9, 0, 0), new TimeSpan(17, 0, 0)); and I think could even reduce to Employee employee = new([9, 0, 0], [17, 0, 0]); be a lazy developer like me ! Thanks for all your community posts to improve our skillsets and make us [even] more dangerous.
@DickBakerSql
@DickBakerSql 6 күн бұрын
at offset=3:45 for "Using C# in a older version of .NET" you showed an explicit <LangVersion>12.0</LangVersion> but that looks fragile, so I suggest instead <LangVersion>default</LangVersion> (for latest major version), or <LangVersion>latest</LangVersion> (latest including minor versions)
@DickBakerSql
@DickBakerSql 6 күн бұрын
at offset=[1:50] you show using (var stream = new MemoryStream()) but that could equally be written using (MemoryStream stream = new()) likewise using var stream = new MemoryStream(); could be rewritten as using MemoryStream stream = new(); i.e. less characters and introduces the type sooner to reduce brain cycles and avoids implicitly-typed local variables (var introduced in C# 3.0 in Nov 2007!). My take is now to specify type on lhs of "=" to get the benefit of collection expressions on rhs, and reduced use of "var", so it shows you can teach an old dog (me!) new tricks. However I have reservations about simple using statements s.t. devs may overuse this so that Dispose() calls won't happen early enough in the rush to avoid an extra brace or more (e.g. streamIn and streamOut) and saving horizontal space. Anyway in .editorconfig [you ARE using that I hope!] you could set csharp_prefer_simple_using_statement = true Likewise later you wrote var myNumbers = new int[] { 1, 3, 5 }; var myNumbers = new int[] { 1, 98, 5 }; var myNumbers = new int[] { 1, 98, 22, 54, 43, 5 }; that could be int[] myNumbers = [1, 3, 5]; int[] myNumbers = [1, 98, 5]; int[] myNumbers = [1, 98, 22, 54, 43, 5];
@funLearningAtYourComfort
@funLearningAtYourComfort 8 күн бұрын
Very helpful. Thank you!
@borstenpinsel
@borstenpinsel 11 күн бұрын
Leave it to Microsoft to create a runtime where the app using it needs to be updated instead of just patching the freaking runtime. No idea why this absolute mess isn't shipped with windows and kept uptodate through live updates anyhow. The fact that you can't run software on windows because it requires a runtime that is also created by Microsoft is a joke. It wasn't funny in 2001 and it certainly isn't now
@airaktai987
@airaktai987 11 күн бұрын
Thanks for good content!
@RoundTheCode
@RoundTheCode 6 күн бұрын
My pleasure!
@m.umarhasan7882
@m.umarhasan7882 11 күн бұрын
A very good video! Can you make a video on handling data in between components when we use both server side and WASM components in one page? For example, calling methods and using events from a component? I'm actually confused about how the data will transferred from a component running inside the browser WASM and the other component being rendered from the server. Imagine passing a class object from a server component to a webassembly component, or the reverse. Does blazor synchronize the both object on both machine automatically? If no, then what is the best uae of having two kinds of components in one page? If yes, then it's a game changer! Plus, why does it create two projects when using Auto?
@pashabolokhov
@pashabolokhov 12 күн бұрын
The best update you can do - is to remove Windows and install Linux, and never ever rever ever rever rever use Windoze again. Boo, Microsoft!!
@RoundTheCode
@RoundTheCode 12 күн бұрын
But what about slow start up times & the blue screen of death? I'd miss those.
@HassanAfshar-kv6ts
@HassanAfshar-kv6ts 12 күн бұрын
Gooooood
@RoundTheCode
@RoundTheCode 12 күн бұрын
Glad you enjoyed the content
@mgame8082
@mgame8082 16 күн бұрын
BUT WHICH VULNERABILITIES!!! I though this would be exceeting video. Disapointed.
@RoundTheCode
@RoundTheCode 16 күн бұрын
Security vulnerabilities. Microsoft would not be expected to provide a fix if one was found, hence the reason to update. Bit premature to know the exact vulnerabilities that will be found, given that it's only been only 2.5 weeks since end of life.
@RmAndrei93
@RmAndrei93 10 күн бұрын
Yeah. This was a useless video
@SinaSoltani-tf8zo
@SinaSoltani-tf8zo 16 күн бұрын
Well, usually the companies and organizations don't use any non LTS versions.
@RoundTheCode
@RoundTheCode 16 күн бұрын
That's true. There's normally a mad rush to update to an in-support .NET version when an LTS version is approaching end of life.
@rahuldeshpande4340
@rahuldeshpande4340 18 күн бұрын
The most awesome tutorial. Thank you!
@RoundTheCode
@RoundTheCode 16 күн бұрын
You're very welcome!
@S3louk
@S3louk 19 күн бұрын
one word.. concise.
@RoundTheCode
@RoundTheCode 16 күн бұрын
Thanks for the comment.
@azarielmochusi702
@azarielmochusi702 20 күн бұрын
The best video, that's all I can say
@RoundTheCode
@RoundTheCode 16 күн бұрын
Thanks for the comment.
@trehbeh
@trehbeh 23 күн бұрын
Have you had problems with Moq library dependencies? Castle.Core specifically?
@RoundTheCode
@RoundTheCode 16 күн бұрын
I personally haven't, but I don't use Castle.Core.
@TheShmrsh
@TheShmrsh 23 күн бұрын
how do you create class library for basic authentification?
@RoundTheCode
@RoundTheCode 16 күн бұрын
This tutorial should help you. It shows you how to create all the classes needed for Basic authentication. www.roundthecode.com/dotnet-tutorials/what-is-basic-authentication-how-to-add-in-asp-net-core
@pillockmacpillock2463
@pillockmacpillock2463 23 күн бұрын
Not sure I like this implementation. Where are the classic start and stop stubs you get in framework? Feels like the core version is a bit noddy
@RoundTheCode
@RoundTheCode 16 күн бұрын
Are you talking about the WorkerService? It inherits the IHostedService interface which includes StartAsync and StopAsync methods. These can be overloaded through the WorkerService. This video has more details about it: kzbin.info/www/bejne/rZfcon6OgsuNfs0
@YarnellCrew
@YarnellCrew 26 күн бұрын
Quick question: Where I work I am required to do a redirect to a Apereo CAS SSO page, and the user enters their username and password on that page, like Google for example. My question is I can't seem to get this to work. I do the GetAsync(ServerAdd/login?service=ReturnAdd) but all I get back is a 200 OK and the HTML for the login page. And what I expect to see is the the CAS page to load, let me enter a username and password, and then get back a 200 OK and a ticket number. Back when I used .net framework I would simply do a Responce.Redirect() with the server name and return address and it worked fine. Should I be using something other then HTTPClient? Thank you for any direction you might be able to point me in. Love your videos!
@maciejs557
@maciejs557 26 күн бұрын
Really like content You create - You always cover topics from basics to nice advanced solutions, which will be useful in 99% of cases:) Thx for Your work, cant wait for more:)
@RoundTheCode
@RoundTheCode 24 күн бұрын
Thanks for the comment. Glad you are enjoying the content.
@dennisjohn7334
@dennisjohn7334 27 күн бұрын
Great one. I used to heavily depend on javascript. This is so good and i have started reworking on the project
@RoundTheCode
@RoundTheCode 16 күн бұрын
That's great! Glad you are liking Blazor.
@10Totti
@10Totti 27 күн бұрын
Nice tutorial thanks!
@RoundTheCode
@RoundTheCode 27 күн бұрын
Thanks for the comment.
@hiandhra9971
@hiandhra9971 27 күн бұрын
Amazing. Can you also do the same for Golang, Python, nodejs applications nobody did those by one KZbinr if you can awaiting and useful content. Thank a lot Sir
@RoundTheCode
@RoundTheCode 25 күн бұрын
Glad you like the content. Unfortunately, I know very little about these technologies so it's not something I can do.
@hiandhra9971
@hiandhra9971 25 күн бұрын
@@RoundTheCode can you show us a Yaml pipeline from scratch for building a .net app and delivery of the app Yaml pipeline. And using docker file to build the image and push to acr
@RiccardoBrianti
@RiccardoBrianti Ай бұрын
you are THE goat, thanks
@RoundTheCode
@RoundTheCode 28 күн бұрын
Thanks Riccardo. Glad I could help.
@bibekvaliya1890
@bibekvaliya1890 Ай бұрын
Hey bro you're amazing as a developer but dude, do something about your face man... you look total nerd.. man...
@simonkalu
@simonkalu Ай бұрын
Simple and concise
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks Simon.
@jigspatel-nu3ee
@jigspatel-nu3ee Ай бұрын
Thank you it's working, explained very easy
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comment.
@dinkar-singh
@dinkar-singh Ай бұрын
Your explanation is really good but at 10:30 you have used variables in two variations ${{ variable.name }} and $(variable.name). why is that? and whats the difference between them?
@RoundTheCode
@RoundTheCode Ай бұрын
I think it's because $(Pipeline.workspace) is a predefined variable
@10Totti
@10Totti Ай бұрын
Great Video!
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks.
@trustingod0
@trustingod0 Ай бұрын
Great video. I’ve always wondered What is meant by contract.Is that an architectural concept or what determines a contract between classes. Could you cover multiple inheritance
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks. You can't do multiple inheritance in C# as you can see at 5:51. The only "close" way you can do it is to do multi-level inheritance, where one class inherits a another class, and that class inherits another class.
@kvelez
@kvelez Ай бұрын
Cool
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comment.
@kvelez
@kvelez Ай бұрын
Cool
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comment.
@a2011q
@a2011q Ай бұрын
very good explanation, thanks a lot 👍👍👍
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comment.
@a2011q
@a2011q Ай бұрын
Anytime
@shreyasmahajan2157
@shreyasmahajan2157 Ай бұрын
In my case everything worked perfectly as demonstrated except the deployment part. After creating the service using "sc" command, I am getting the following error : Windows Could not start the <ServiceName> service on the local computer. Error 1053 : The service did not respond to the start or control request in a timely fashion. What is the reason for this error ? Thanks.
@RoundTheCode
@RoundTheCode Ай бұрын
You've either got the service name wrong, or there is a bug with your application. Make sure the service name you ran with the "sc" command matches what is in your app.
@shreyasmahajan2157
@shreyasmahajan2157 Ай бұрын
​@@RoundTheCode Thanks for the reply!! Here is the the the way I am creating the service : sc create AIQuestionGeneration.WorkerService binpath="D:\Path\ToService\Build1\AIQuestionGeneration.WorkerService.exe" start="demand" displayname="AIQuestionGeneration.WorkerService" Any thing incorrect ? Or a Bug in my application ?
@shreyasmahajan2157
@shreyasmahajan2157 Ай бұрын
After banging my head for quite a few hours, I have sorted the issue. The issue was simple, the service was not able to find the app.settings.json file because I had used "Directory.GetCurrentDirectory()" in my Program.cs. As a result it was searching the file in the default location of system32. All what I had to do was change the path to : "Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)" and it worked in a second. The error which I got was not much informative. I had to visit the "Event Viewer" section in Windows to check the logs and figure out the exact error.
@khanfaizan05
@khanfaizan05 Ай бұрын
Very nice.. very clear explanation.. loved it.. thank you very much ❤
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comments.
@sibrenbouman5624
@sibrenbouman5624 Ай бұрын
Hi, I'm getting the following error when trying to run: 'The pipeline is not valid. Unable to resolve latest version for pipeline build-pipeline. This could be due to inaccessible pipeline or no version is available.' Google isn't helping me much. What could be the issue?
@RoundTheCode
@RoundTheCode Ай бұрын
Drop me a message on LinkedIn and attach the YAML file to the message. My LinkedIn page is www.roundthecode.com/linkedin
@sibrenbouman5624
@sibrenbouman5624 Ай бұрын
@@RoundTheCode I've send you a message!
@RoundTheCode
@RoundTheCode Ай бұрын
I think you have two PublishBuildArtifacts@1 tasks in your build pipeline.
@sibrenbouman5624
@sibrenbouman5624 Ай бұрын
@@RoundTheCode I did, but unfortunately removing one didn't fix it.
@brandonduncan9421
@brandonduncan9421 Ай бұрын
Isn't it "bad" to pass in a copy of the DbContext instead of passing a read only reference to it?
@RoundTheCode
@RoundTheCode Ай бұрын
Which part are you referring to?
@daanypma8089
@daanypma8089 2 ай бұрын
What a fucking juicer, Cool tutorial!
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks. For one moment, I thought "juicer" was someone with a heavy drinking problem, but the Urban Dictionary corrected me.
@shubhamgadre5796
@shubhamgadre5796 2 ай бұрын
Awesome!
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks!
@alfonsdeda8912
@alfonsdeda8912 2 ай бұрын
Great video! I have one question: Why if I do a query like this in one to many relationship doesn't throw exception in ef core but with linq to object throws: Suppose I have one object with many serial numbers, because the current serial number is only the last but the table is the historical too,and I want to filter what object has the serial number but only among the most recent of every object, so I did a query like this: Context.Objects.Include(o=> o.SerialNumbers.Where(s=> s.TypeId==2)).Where(s=> s.SerialNumbers.OrderByDescending(s=>s.Date).FirstOrDefault().Value == passed serial number). FirstOrDefault() I did an include with condition, but in the where clause I expected that the FirstOrDefault().Value throws exception where the FirstOrDefault () results null, but in ef core this doesn't happen. There is a explanation to this? Sorry for my english and my long question, I hope it is clear what I meant to do. Thanks in advance.
@RoundTheCode
@RoundTheCode Ай бұрын
Glad you like the content. Your query is too complex for EF Core. For this, you are best to put it in a SQL view, then query it using the DbContext. Watch this video to find out how to use EF Core with views kzbin.info/www/bejne/in7MgHR7eMmimq8
@alfonsdeda8912
@alfonsdeda8912 Ай бұрын
@@RoundTheCode You misunderstood my question I think. The query is working correctly but I don't understand why the FirstOrDefault().Value in the where clause doesn't throw exception with ef core.
@RoundTheCode
@RoundTheCode Ай бұрын
Yes I did misunderstand. Are you using SQL Server to query this? If so, this article may help. learn.microsoft.com/en-us/ef/core/querying/null-comparisons When trying to match a null value in a SQL Server query, it doesn't throw an exception. When LINQ translates the query to SQL, I wonder if it does the same?
@youkickedmydog0
@youkickedmydog0 2 ай бұрын
you don't need to specify the password in the connection string?
@RoundTheCode
@RoundTheCode Ай бұрын
Not if you use intergrated security.
@youkickedmydog0
@youkickedmydog0 Ай бұрын
@@RoundTheCode can this be done from Mac? I’m on a Mac so I set it in a json using dotnet user-secrets to avoid exposing it
@RoundTheCode
@RoundTheCode Ай бұрын
Not sure. Don't know much about Macs, but this article may help: learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/using-integrated-authentication?view=sql-server-ver16
@ben.aka.bigben
@ben.aka.bigben 2 ай бұрын
Haven’t seen a better explanation yet. Short yet through.
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks for the comment.
@milosmrdovic7233
@milosmrdovic7233 2 ай бұрын
C# is an overly bloated language already. I honestly don't think we need another language feature so we can have yet another way to do the exact same thing only to save a few keystrokes in the process.
@RoundTheCode
@RoundTheCode Ай бұрын
It does feel like they rushed it out a little, but hopefully they can add the readonly feature in C# 13 to complete it.
@simshady
@simshady 2 ай бұрын
The thumbnail alone was enough for me to leave a like :D Keep up the good work!
@RoundTheCode
@RoundTheCode Ай бұрын
Thanks, will do!
@antoniatromp2827
@antoniatromp2827 2 ай бұрын
😄 Promo>SM
@RoundTheCode
@RoundTheCode 2 ай бұрын
???
@shubhamgadre5796
@shubhamgadre5796 2 ай бұрын
Awesome. Please help me with the odd cases. Like how to fix a method if it's expecting an integer and we are passing a string. Thanks.
@RoundTheCode
@RoundTheCode 2 ай бұрын
Would that not throw a compile error because the type you are passing in would be wrong?