Strings.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. namespace System.Data.DataSetExtensions
  2. {
  3. static partial class Strings
  4. {
  5. const string DataSetLinq_InvalidEnumerationValue_ = "The {0} enumeration value, {1}, is not valid.";
  6. public const string DataSetLinq_EmptyDataRowSource = "The source contains no DataRows.";
  7. public const string DataSetLinq_NullDataRow = "The source contains a DataRow reference that is null.";
  8. public const string DataSetLinq_CannotLoadDeletedRow = "The source contains a deleted DataRow that cannot be copied to the DataTable.";
  9. public const string DataSetLinq_CannotLoadDetachedRow = "The source contains a detached DataRow that cannot be copied to the DataTable.";
  10. public const string DataSetLinq_CannotCompareDeletedRow = "The DataRowComparer does not work with DataRows that have been deleted since it only compares current values.";
  11. const string DataSetLinq_NonNullableCast_ = "Cannot cast DBNull.Value to type '{0}'. Please use a nullable type.";
  12. public const string ToLDVUnsupported = "Can not create DataView after using projection";
  13. const string LDV_InvalidNumOfKeys_ = "Must provide '{0}' keys to find";
  14. public static string DataSetLinq_InvalidEnumerationValue (params object[] args)
  15. {
  16. return SR.GetString (DataSetLinq_InvalidEnumerationValue_, args);
  17. }
  18. public static string DataSetLinq_NonNullableCast (object arg)
  19. {
  20. return SR.GetString (DataSetLinq_NonNullableCast_, arg);
  21. }
  22. public static string LDV_InvalidNumOfKeys (params object[] args)
  23. {
  24. return SR.GetString (LDV_InvalidNumOfKeys_, args);
  25. }
  26. // Missing
  27. public const string LDVRowStateError = "LDVRowStateError";
  28. }
  29. }