DbFunctions.cs 492 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Data.Entity.Core.Objects.DataClasses;
  6. namespace EMIS.Entities
  7. {
  8. public static class DbFunctions
  9. {
  10. [EdmFunction("EMIS.Entities.DTO.Store", "PadLeft")]
  11. public static string PadLeft(int? source, string paddingChar, int totalWidth)
  12. {
  13. throw new NotImplementedException("You can only call this method as part of a LINQ expression");
  14. }
  15. }
  16. }