using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity.Core.Objects.DataClasses; namespace EMIS.Entities { public static class DbFunctions { [EdmFunction("EMIS.Entities.DTO.Store", "PadLeft")] public static string PadLeft(int? source, string paddingChar, int totalWidth) { throw new NotImplementedException("You can only call this method as part of a LINQ expression"); } } }