Tag: difference
What is the Difference between varchar and nvarchar in SQL Server?
The SQL Server has the data type varchar and nvarchar . What is the main difference between the both ? Let’s explore it in this article. What is the Difference between varchar and nvarchar in SQL Server? varchar is a variable length and non-unicode data type which can take the 8-bit codepage. The collation of the database identifies which of the code page should be…
Difference between RenderBody, RenderPage and RenderSection in ASP.NET MVC
Difference between RenderBody, RenderPage and RenderSection in ASP.NET MVC The RenderBody can generally be found in the Layout page which is a kind of master page. Each Layout page can contain only one RenderBody method. It is like a Content Placeholder in ASP.NET WebForms. With the RenderPage, the content of the page can be filled by other pages. This takes the physical path of the…
What is the difference between struct and class in C# ?
Below are some differences between struct and class in C# classes are reference types where as struct are value types. Null value cannot be assigned to the Struct because it is a non-nullable value type . Whereas the object of a class can be assigned a null value. Classes support inheritance but the struct doesn’t. struct cannot have destructor but a class can have. struct…
What is the Difference between Repository and Service Layer in ASP.NET MVC?
Repository pattern, Unit of Work and Service Layer is one of the most commonly used word or technique especially when you are working on the ASP.NET MVC project. What is the Difference between Repository and Service Layer in ASP.NET MVC? These are the common Design pattern terms used in the ASP.NET MVC project. The Repository is a layer that provides additional abstraction on the data…
What is the Difference between Readonly and Const in C# ?
If you want to have a field whose value cannot be changed at runtime , you can use either const or readonly keyword . What is the Difference between ReadOnly and Const in C# ? The constant fields must be defined when declaring and cannot be changed at runtime . It is a implicitly static . The read only field can be set when declaring…