db.Database.GetNextCharId C# (CSharp) Method