EF : Code First – Auto Increment Key

No need for an explanation for the subject. Its a general scenario to have an auto incremental key column in DB. So, we can use [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] attributes for the purpose, for example : namespace CustomerBase.Models { using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public partial class Customer { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } […]

Read More EF : Code First – Auto Increment Key

C# : My Verdict on Pointers

Originally from here.¬† Earlier I have already published a post on Pointers, which are very fascinating things in C and C++. A pointer is a variable valued with the memory address another variable. Pointers¬†maintain a common rule, like a variable or constant we need to define a pointer in order to store the variable or […]

Read More C# : My Verdict on Pointers