SqlFuncExtendsion.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SqlSugar
  8. {
  9. public static class SqlFuncExtendsion
  10. {
  11. internal static List<ConfigTableInfo> TableInfos = new List<ConfigTableInfo>();
  12. public static string GetConfigValue<Type>(this object field)
  13. {
  14. throw new NotSupportedException("Can only be used in expressions");
  15. }
  16. public static string GetConfigValue<Type>(this object field,string uniqueCode)
  17. {
  18. throw new NotSupportedException("Can only be used in expressions");
  19. }
  20. public static FieldType SelectAll<FieldType>(this FieldType field)
  21. {
  22. throw new NotSupportedException("Can only be used in expressions");
  23. }
  24. public static FieldType SelectAll<FieldType>(this FieldType field,string singleTableQueryShortName)
  25. {
  26. throw new NotSupportedException("Can only be used in expressions");
  27. }
  28. }
  29. }