internal static Exception InvalidSyncTableName(string tableName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("InvalidTableName", new object[1] { (object)tableName }))); }
internal void Validate(int index, SyncColumnMapping item) { if (item == null) { throw SyncExpt.ArgumentNull("item"); } if (item.Parent != null && this != item.Parent) { throw SyncExpt.Argument("", "item.Parent"); } string serverColumn1 = item.ServerColumn; if (SyncUtil.IsEmpty(serverColumn1)) { index = 1; string serverColumn2; do { serverColumn2 = "ServerColumn" + index.ToString((IFormatProvider)CultureInfo.InvariantCulture); ++index; }while (-1 != this.IndexOfServerColumn(serverColumn2)); item.ServerColumn = serverColumn2; } else { this.ValidateServerColumn(index, serverColumn1); } string clientColumn = item.ClientColumn; this.ValidateClientColumn(index, clientColumn); }
internal static ArgumentException MaxSyncAnchorSize(int maxAnchorSize) { return(SyncExpt.Argument(SyncResource.FormatString("MaxSyncAnchorSize", new object[1] { (object)maxAnchorSize.ToString((IFormatProvider)CultureInfo.InvariantCulture) }))); }
internal static ArgumentException MaxNumberOfCustomParameters(int maxCustomParameters) { return(SyncExpt.Argument(SyncResource.FormatString("MaxNumberOfCustomParameters", new object[1] { (object)maxCustomParameters.ToString((IFormatProvider)CultureInfo.InvariantCulture) }))); }
internal static Exception SyncTableBelongsToDifferentCollection(string tableName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("SyncTableParentExists", new object[1] { (object)tableName }))); }
internal static Exception DuplicateSyncAdapter(string tableName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("SyncAdapterAlreadyExists", new object[1] { (object)tableName }))); }
internal static Exception SqlChangeTrackingNotEnabled(string tableName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("SqlChangeTrackingNotEnabled", new object[1] { (object)tableName }))); }
internal static ArgumentException ParameterNotSet(string parameter) { return(SyncExpt.Argument(SyncResource.FormatString("ParameterNotSet", new object[1] { (object)parameter }))); }
internal static Exception DuplicateSyncParameterName(string parameterName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("DuplicateParamName", new object[1] { (object)parameterName }))); }
internal void ValidateClientColumn(int index, string value) { int num = this.IndexOfClientColumn(value); if (-1 != num && index != num) { throw SyncExpt.Argument("not unique"); } }
internal static Exception InvalidSyncGroupName() { return((Exception)SyncExpt.Argument(SyncResource.GetString("InvalidGroupName"), "GroupName")); }
internal static ArgumentException MaxSizeOfCustomParameter() { return(SyncExpt.Argument(SyncResource.GetString("MaxSizeOfCustomParameter"))); }
internal static ArgumentException InvalidConnectionArgument() { return(SyncExpt.Argument(SyncResource.GetString("InvalidConnectionArgument"))); }
internal static Exception DuplicateSyncTable(string tableName, string syncGroupName) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("SyncTableAlreadyExists", (object)tableName, (object)syncGroupName))); }
internal static ArgumentException ColumnNotInTable(string table, string column) { return(SyncExpt.Argument(SyncResource.FormatString("SyncSchema_ColumnNotInTable", (object)column, (object)table))); }
internal static Exception InvalidSyncParameterObject() { return((Exception)SyncExpt.Argument(SyncResource.GetString("InvalidParamObject"))); }
internal static Exception InvalidScopeIdType(string command, string parameterName, string parameterType) { return((Exception)SyncExpt.Argument(SyncResource.FormatString("InvalidScopeIdType", (object)command, (object)parameterName, (object)parameterType))); }
internal static Exception InvalidSyncAdapterObject() { return((Exception)SyncExpt.Argument(SyncResource.GetString("SyncAdapterCollection_Add_InvalidType"))); }