Posts

Showing posts from June, 2019

Asp.net Core

Asp.Net Core ASP.NET Core is a web framework created by Microsoft for building web applications, APIs, and microservices. It uses common patterns like MVC (Model-View-Controller), dependency injection, and a request pipeline comprised of middleware. It's open-source.ASP.NET Core runs on top of Microsoft's .NET runtime. Advantages Dotnet core is very fast.ASP.NET Core is also optimized for multithreading and asynchronous tasks. Asp.net core has a built in package manager(nuget) to download the necessary packages. Asp.net core is more secure. Components of Dot net Core  Program.cs  and Startup.cs            These files set up the web server and asp.net core pipeline.The startup.cs is the class where we              add middlewares,registering our services with container.       2.Models,Views and Controllers            These are the directorie...

Some Basic SQL Tips

1.Boolean data type         bit 2.Get the current datetime       select getdate() 3.Find the character location in the given string       select charindex('.','lkji.') 4.Replace the specific string or character with some other in the given string       select replace('lkji.','.','-0') 5.Calculate the length of the given string       select len('hello') 6.Find the current time in hours       select datepart(hour,getdate()) 7.Find the day number of current date in total days of year      select datepart(dayofyear,getdate()) 8.Find the week day number of current date       select datepart(dw,getdate())   9.Remove the white spaces of left and right side of the given string       select ltrim(rtrim('   lkjkj   ')) 10.Get the date before...

Differences between Abstract class and Static class in C#

Today we are going to see the differences between abstract class and static class in c#. It is very important thing in c#. We have there are 4 types of classes in c# such as abstract,static,partial and sealed. Sl.No Abstract Class Static Class 1. Object can’t be created Object can’t be created 2. Created using Abstract keyword Created using Static Keyword 3. It should be Inherited to access data Use class name with dot operator to access data 4. Can be inherited Can’t be inherited