I am new to Asp.Net and MVC as such . The one thing that keeps confusing me is that we use @Using and @Model in our views sometimes , i need more clarity on what is required when and why.
@using
is the same as as the the using directive in normal C# code: it gives access to Types of a Namespace without having to explicitly stating it.
@model
defines the type of the Model for the view (or partial), allowing typed access to it and it's members.
@Model
accesses the model linked with this view in the current call, as in the actual Data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With