FeedC# TutorialArchiveAbout

Delegates And Events In C#

Delegates And Events In C#

Contents

What Are Events In C#?

An event can be used to provide notifications. You can subscribe to an event if you are interested in those notifications. You can also create your own events and raise them to provide notifications when something interesting happens. The .NET Framework offers built-in types that you can use to create events. By using delegates, lambda expressions, and anonymous methods, you can create and use events in a comfortable way.

AngularJS Service

AngularJS Service

Contents

What are Services in Angularjs?

Angularjs Services are functions or objects that contains reusable code that can get consumed accross app by controllers, directives, filters and other services using Dependency Injection Mechanism of Angularjs.

MVC Life Cycle

MVC Life Cycle

From getting client request to sending a response, the Asp.NET MVC lifecycle is bit complex. This lifecycle is totally different from old Asp.NET Webforms. As the page in Webforms has page lifecycle many people compare this with Asp.NET MVC lifecycle which is totally a different thing.

Entity Framework Enum Code First Lookup Table

Entity Framework Enum Code First Lookup Table

In this tutorial you will learn how to create lookup tables using enums in entity framework (EF) with Code-first approach.

With EF support for enums, you can include lookup tables in the code in form of enums and also have them in the database for integrity.

Contents

This tutorial provides the information you need about:

What Is Enum In C# ?

Enum or Enumerations is used to declare a list of named integer constants. The enum is used to give a name to each constant so that the constant integer can be referred using its name.

Enumerations appear in your source code. These are things that affect program logic because you’re going to have conditional statements based on the state of some entity comparing it with some enum value. This enums represents numerical values which can get used in place of IDs in database tables.