You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
@@ -279,7 +279,7 @@ namespace System.Data.Linq {
|
||||
private void ResolveDelete() {
|
||||
Debug.Assert(this.IsDeleted);
|
||||
// If the user is attempting to update an entity that no longer exists
|
||||
// in the database, we first need to [....] the delete into the local cache.
|
||||
// in the database, we first need to sync the delete into the local cache.
|
||||
if (!trackedObject.IsDeleted) {
|
||||
trackedObject.ConvertToDeleted();
|
||||
}
|
||||
@@ -287,7 +287,7 @@ namespace System.Data.Linq {
|
||||
// As the object have been deleted, it needs to leave the cache
|
||||
this.Session.Context.Services.RemoveCachedObjectLike(trackedObject.Type, trackedObject.Original);
|
||||
|
||||
// Now that our cache is in [....], we accept the changes
|
||||
// Now that our cache is in sync, we accept the changes
|
||||
this.trackedObject.AcceptChanges();
|
||||
this.isResolved = true;
|
||||
}
|
||||
|
@@ -45,14 +45,14 @@ namespace System.Data.Linq {
|
||||
private enum AutoSyncBehavior { ApplyNewAutoSync, RollbackSavedValues }
|
||||
|
||||
DataContext context;
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="[....]: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="Microsoft: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
List<KeyValuePair<TrackedObject, object[]>> syncRollbackItems;
|
||||
|
||||
internal StandardChangeDirector(DataContext context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="[....]: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="Microsoft: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
private List<KeyValuePair<TrackedObject, object[]>> SyncRollbackItems {
|
||||
get {
|
||||
if (syncRollbackItems == null) {
|
||||
@@ -89,7 +89,7 @@ namespace System.Data.Linq {
|
||||
IEnumerable<object> facts = (IEnumerable<object>)this.context.Provider.Execute(cmd).ReturnValue;
|
||||
object[] syncResults = (object[])facts.FirstOrDefault();
|
||||
if (syncResults != null) {
|
||||
// [....] any auto gen or computed members
|
||||
// sync any auto gen or computed members
|
||||
AutoSyncMembers(syncResults, item, UpdateType.Insert, AutoSyncBehavior.ApplyNewAutoSync);
|
||||
return 1;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ namespace System.Data.Linq {
|
||||
IEnumerable<object> facts = (IEnumerable<object>)this.context.Provider.Execute(cmd).ReturnValue;
|
||||
object[] syncResults = (object[])facts.FirstOrDefault();
|
||||
if (syncResults != null) {
|
||||
// [....] any auto gen or computed members
|
||||
// sync any auto gen or computed members
|
||||
AutoSyncMembers(syncResults, item, UpdateType.Update, AutoSyncBehavior.ApplyNewAutoSync);
|
||||
return 1;
|
||||
}
|
||||
@@ -204,7 +204,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="[....]: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="Microsoft: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
internal override void RollbackAutoSync() {
|
||||
// Rolls back any AutoSync values that may have been set already
|
||||
// Those values are no longer valid since the transaction will be rolled back on the server
|
||||
@@ -222,7 +222,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="[....]: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="Microsoft: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
internal override void ClearAutoSyncRollback() {
|
||||
this.syncRollbackItems = null;
|
||||
}
|
||||
@@ -260,7 +260,7 @@ namespace System.Data.Linq {
|
||||
private static List<MetaDataMember> GetAutoSyncMembers(MetaType metaType, UpdateType updateType) {
|
||||
List<MetaDataMember> membersToSync = new List<MetaDataMember>();
|
||||
foreach (MetaDataMember metaMember in metaType.PersistentDataMembers.OrderBy(m => m.Ordinal)) {
|
||||
// add all auto generated members for the specified update type to the auto-[....] list
|
||||
// add all auto generated members for the specified update type to the auto-sync list
|
||||
if ((updateType == UpdateType.Insert && metaMember.AutoSync == AutoSync.OnInsert) ||
|
||||
(updateType == UpdateType.Update && metaMember.AutoSync == AutoSync.OnUpdate) ||
|
||||
metaMember.AutoSync == AutoSync.Always) {
|
||||
@@ -272,14 +272,14 @@ namespace System.Data.Linq {
|
||||
|
||||
/// <summary>
|
||||
/// Synchronize the specified item by copying in data from the specified results.
|
||||
/// Used to [....] members after successful insert or update, but also used to rollback to previous values if a failure
|
||||
/// Used to sync members after successful insert or update, but also used to rollback to previous values if a failure
|
||||
/// occurs on other entities in the same SubmitChanges batch.
|
||||
/// </summary>
|
||||
/// <param name="autoSyncBehavior">
|
||||
/// If AutoSyncBehavior.ApplyNewAutoSync, the current value of the property is saved before the [....] occurs. This is used for normal synchronization after a successful update/insert.
|
||||
/// Otherwise, the current value is not saved. This is used for rollback operations when something in the SubmitChanges batch failed, rendering the previously-[....]'d values invalid.
|
||||
/// If AutoSyncBehavior.ApplyNewAutoSync, the current value of the property is saved before the sync occurs. This is used for normal synchronization after a successful update/insert.
|
||||
/// Otherwise, the current value is not saved. This is used for rollback operations when something in the SubmitChanges batch failed, rendering the previously-sync'd values invalid.
|
||||
/// </param>
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="[....]: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
[SuppressMessage("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies", Justification="Microsoft: FxCop bug Dev10:423110 -- List<KeyValuePair<object, object>> is not supposed to be flagged as a violation.")]
|
||||
private void AutoSyncMembers(object[] syncResults, TrackedObject item, UpdateType updateType, AutoSyncBehavior autoSyncBehavior) {
|
||||
System.Diagnostics.Debug.Assert(item != null);
|
||||
System.Diagnostics.Debug.Assert(item.IsNew || item.IsPossiblyModified, "AutoSyncMembers should only be called for new and modified objects.");
|
||||
|
@@ -115,9 +115,9 @@ namespace System.Data.Linq {
|
||||
|
||||
// if we have accumulated any failed updates, throw the exception now
|
||||
if (conflicts.Count > 0) {
|
||||
// First we need to rollback any value that have already been auto-[....]'d, since the values are no longer valid on the server
|
||||
// First we need to rollback any value that have already been auto-sync'd, since the values are no longer valid on the server
|
||||
changeDirector.RollbackAutoSync();
|
||||
// Also rollback any dependent items that were [....]'d, since their parent values may have been rolled back
|
||||
// Also rollback any dependent items that were sync'd, since their parent values may have been rolled back
|
||||
foreach (TrackedObject syncDependentItem in syncDependentItems) {
|
||||
Debug.Assert(syncDependentItem.IsNew || syncDependentItem.IsPossiblyModified, "SynchDependent data should only be rolled back for new and modified objects.");
|
||||
syncDependentItem.SynchDependentData();
|
||||
|
@@ -560,7 +560,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
// Return value indicates whether or not any data was actually [....]'d
|
||||
// Return value indicates whether or not any data was actually sync'd
|
||||
internal override bool SynchDependentData() {
|
||||
bool valueWasSet = false;
|
||||
|
||||
|
@@ -31,7 +31,7 @@ namespace System.Data.Linq {
|
||||
get { return this.query; }
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TResult> Compile<TArg0, TResult>(Expression<Func<TArg0, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -44,7 +44,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TResult> Compile<TArg0, TArg1, TResult>(Expression<Func<TArg0, TArg1, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -57,7 +57,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TResult> Compile<TArg0, TArg1, TArg2, TResult>(Expression<Func<TArg0, TArg1, TArg2, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -70,7 +70,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -83,7 +83,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -96,7 +96,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -109,7 +109,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -122,7 +122,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -135,7 +135,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -148,7 +148,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -161,7 +161,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -174,7 +174,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -187,7 +187,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -200,7 +200,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -213,7 +213,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
@@ -226,7 +226,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>> query) where TArg0 : DataContext {
|
||||
if (query == null) {
|
||||
Error.ArgumentNull("query");
|
||||
|
@@ -352,7 +352,7 @@ namespace System.Data.Linq {
|
||||
/// <typeparam name="TEntity">The type of the entity objects. In case of a persistent hierarchy
|
||||
/// the entity specified must be the base type of the hierarchy.</typeparam>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
public Table<TEntity> GetTable<TEntity>() where TEntity : class {
|
||||
CheckDispose();
|
||||
MetaTable metaTable = this.services.Model.GetTable(typeof(TEntity));
|
||||
@@ -483,7 +483,7 @@ namespace System.Data.Linq {
|
||||
/// You can override this method to implement common conflict resolution behaviors.
|
||||
/// </summary>
|
||||
/// <param name="failureMode">Determines how SubmitChanges handles conflicts.</param>
|
||||
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "[....]: In the middle of attempting to rollback a transaction, outer transaction is thrown.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Microsoft: In the middle of attempting to rollback a transaction, outer transaction is thrown.")]
|
||||
public virtual void SubmitChanges(ConflictMode failureMode) {
|
||||
CheckDispose();
|
||||
CheckNotInSubmitChanges();
|
||||
@@ -718,7 +718,7 @@ namespace System.Data.Linq {
|
||||
/// <param name="query">The query specified in the server's native query language.</param>
|
||||
/// <param name="parameters">The parameter values to use for the query.</param>
|
||||
/// <returns>An IEnumerable sequence of objects.</returns>
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
public IEnumerable<TResult> ExecuteQuery<TResult>(string query, params object[] parameters) {
|
||||
CheckDispose();
|
||||
if (query == null) {
|
||||
@@ -786,7 +786,7 @@ namespace System.Data.Linq {
|
||||
/// <param name="methodInfo">The reflection MethodInfo for the method to invoke.</param>
|
||||
/// <param name="parameters">The parameters for the method call.</param>
|
||||
/// <returns>The returned query object</returns>
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
internal protected IQueryable<TResult> CreateMethodCallQuery<TResult>(object instance, MethodInfo methodInfo, params object[] parameters) {
|
||||
CheckDispose();
|
||||
if (instance == null) {
|
||||
@@ -884,7 +884,7 @@ namespace System.Data.Linq {
|
||||
/// <typeparam name="TResult">The element type of the resulting sequence</typeparam>
|
||||
/// <param name="reader">The DbDataReader to translate</param>
|
||||
/// <returns>The translated sequence of objects</returns>
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
public IEnumerable<TResult> Translate<TResult>(DbDataReader reader) {
|
||||
CheckDispose();
|
||||
return (IEnumerable<TResult>)this.Translate(typeof(TResult), reader);
|
||||
@@ -999,7 +999,7 @@ namespace System.Data.Linq {
|
||||
/// ITable is the common interface for DataContext tables. It can be used as the source
|
||||
/// of a dynamic/runtime-generated query.
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="[....]: Meant to represent a database table which is delayed loaded and doesn't provide collection semantics.")]
|
||||
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="Microsoft: Meant to represent a database table which is delayed loaded and doesn't provide collection semantics.")]
|
||||
public interface ITable : IQueryable {
|
||||
/// <summary>
|
||||
/// The DataContext containing this Table.
|
||||
@@ -1102,7 +1102,7 @@ namespace System.Data.Linq {
|
||||
/// persisted in the database. Use it as a source of queries and to add/insert and remove/delete entities.
|
||||
/// </summary>
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="[....]: Meant to represent a database table which is delayed loaded and doesn't provide collection semantics.")]
|
||||
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="Microsoft: Meant to represent a database table which is delayed loaded and doesn't provide collection semantics.")]
|
||||
public sealed class Table<TEntity> : IQueryable<TEntity>, IQueryProvider, IEnumerable<TEntity>, IQueryable, IEnumerable, ITable, IListSource, ITable<TEntity>
|
||||
where TEntity : class {
|
||||
DataContext context;
|
||||
@@ -1156,7 +1156,7 @@ namespace System.Data.Linq {
|
||||
return (IQueryable)Activator.CreateInstance(dqType, new object[] { this.context, expression });
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
IQueryable<TResult> IQueryProvider.CreateQuery<TResult>(Expression expression) {
|
||||
if (expression == null) {
|
||||
throw Error.ArgumentNull("expression");
|
||||
@@ -1171,7 +1171,7 @@ namespace System.Data.Linq {
|
||||
return this.context.Provider.Execute(expression).ReturnValue;
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
TResult IQueryProvider.Execute<TResult>(Expression expression) {
|
||||
return (TResult)this.context.Provider.Execute(expression).ReturnValue;
|
||||
}
|
||||
@@ -1680,7 +1680,7 @@ namespace System.Data.Linq {
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes", Justification = "[....]: Types are never compared to each other. When comparisons happen it is against the entities that are represented by these constructs.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes", Justification = "Microsoft: Types are never compared to each other. When comparisons happen it is against the entities that are represented by these constructs.")]
|
||||
public struct ModifiedMemberInfo {
|
||||
MemberInfo member;
|
||||
object current;
|
||||
|
@@ -17,8 +17,8 @@ namespace System.Data.Linq {
|
||||
/// <summary>
|
||||
/// Describe a property that is automatically loaded when the containing instance is loaded
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "[....]: Need to provide static typing.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Microsoft: Need to provide static typing.")]
|
||||
public void LoadWith<T>(Expression<Func<T, object>> expression) {
|
||||
if (expression == null) {
|
||||
throw Error.ArgumentNull("expression");
|
||||
@@ -41,8 +41,8 @@ namespace System.Data.Linq {
|
||||
/// <summary>
|
||||
/// Place a subquery on the given association.
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "[....]: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "[....]: Need to provide static typing.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Microsoft: Generic types are an important part of Linq APIs and they could not exist without nested generic support.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Microsoft: Need to provide static typing.")]
|
||||
public void AssociateWith<T>(Expression<Func<T, object>> expression) {
|
||||
if (expression == null) {
|
||||
throw Error.ArgumentNull("expression");
|
||||
|
@@ -15,12 +15,12 @@ namespace System.Data.Linq {
|
||||
public static class DBConvert {
|
||||
private static Type[] StringArg = new Type[] { typeof(string) };
|
||||
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "[....]: Generic parameters are required for strong-typing of the return type.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Microsoft: Generic parameters are required for strong-typing of the return type.")]
|
||||
public static T ChangeType<T>(object value) {
|
||||
return (T)ChangeType(value, typeof(T));
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
public static object ChangeType(object value, Type type) {
|
||||
if (value == null)
|
||||
|
@@ -501,7 +501,7 @@ namespace System.Data.Linq.Mapping {
|
||||
/// </summary>
|
||||
/// <param name="instance">The instance to set the value into.</param>
|
||||
/// <param name="value">The value to set.</param>
|
||||
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate", Justification="[....]: Needs to handle classes and structs.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate", Justification="Microsoft: Needs to handle classes and structs.")]
|
||||
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification="Unknown reason.")]
|
||||
public abstract void SetBoxedValue(ref object instance, object value);
|
||||
/// <summary>
|
||||
|
@@ -140,8 +140,8 @@ namespace System.Data.Linq.Provider {
|
||||
/// <param name="item"></param>
|
||||
/// <param name="resultSelector"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static TResult Insert<TEntity, TResult>(TEntity item, Func<TEntity, TResult> resultSelector) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ namespace System.Data.Linq.Provider {
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static int Insert<TEntity>(TEntity item) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -166,9 +166,9 @@ namespace System.Data.Linq.Provider {
|
||||
/// <param name="check"></param>
|
||||
/// <param name="resultSelector"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static TResult Update<TEntity, TResult>(TEntity item, Func<TEntity, bool> check, Func<TEntity, TResult> resultSelector) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -181,8 +181,8 @@ namespace System.Data.Linq.Provider {
|
||||
/// <param name="item"></param>
|
||||
/// <param name="resultSelector"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "resultSelector", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static TResult Update<TEntity, TResult>(TEntity item, Func<TEntity, TResult> resultSelector) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -194,8 +194,8 @@ namespace System.Data.Linq.Provider {
|
||||
/// <param name="item"></param>
|
||||
/// <param name="check"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static int Update<TEntity>(TEntity item, Func<TEntity, bool> check) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -206,7 +206,7 @@ namespace System.Data.Linq.Provider {
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static int Update<TEntity>(TEntity item) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -218,8 +218,8 @@ namespace System.Data.Linq.Provider {
|
||||
/// <param name="item"></param>
|
||||
/// <param name="check"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "check", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static int Delete<TEntity>(TEntity item, Func<TEntity, bool> check) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -230,7 +230,7 @@ namespace System.Data.Linq.Provider {
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "[....]: The method is being used to represent a method signature")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "item", Justification = "Microsoft: The method is being used to represent a method signature")]
|
||||
public static int Delete<TEntity>(TEntity item) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
int nDepth;
|
||||
|
||||
// Visit a SqlNode
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification="[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification="Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
internal virtual SqlNode Visit(SqlNode node) {
|
||||
|
@@ -142,7 +142,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
internal virtual Expression Visit(Expression exp) {
|
||||
if (exp == null)
|
||||
return exp;
|
||||
|
@@ -1 +1 @@
|
||||
55ae51ee9571e225d66d051c088e676a1ee4f3e6
|
||||
a9135481d56b670cb96d8798bd482357c1b2cd30
|
@@ -1266,7 +1266,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
throw Error.UnexpectedNode(node.NodeType);
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
internal SqlExpression ConvertToFetchedExpression(SqlNode node) {
|
||||
|
@@ -13,7 +13,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
internal SqlComparer() {
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1505:AvoidUnmaintainableCode", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These issues are related to our use of if-then and case statements for node types, which adds to the complexity count however when reviewed they are easy to navigate and understand.")]
|
||||
|
@@ -236,7 +236,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
return select;
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification="[....]: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification="Microsoft: Cast is dependent on node type and casts do not happen unecessarily in a single code path.")]
|
||||
private void CheckJoinCondition(SqlExpression expr) {
|
||||
switch (expr.NodeType) {
|
||||
case SqlNodeType.And: {
|
||||
|
@@ -20,7 +20,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
}
|
||||
|
||||
class Visitor : SqlVisitor {
|
||||
[SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Justification = "[....]: part of our standard visitor pattern")]
|
||||
[SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Justification = "Microsoft: part of our standard visitor pattern")]
|
||||
SqlFactory sql;
|
||||
SqlColumnizer columnizer;
|
||||
bool isTopLevel;
|
||||
|
@@ -1 +1 @@
|
||||
ddbca5a93db3b40896c13eb12fd79c5262f0a810
|
||||
79be6fe37eb380b36e1b72a1cf7c623b39964556
|
@@ -1 +1 @@
|
||||
44139f927c2c7e86f11847768cc2daed9e85dd37
|
||||
70507c2459696b274393412e2a3044c4491491f1
|
@@ -562,8 +562,8 @@ namespace System.Data.Linq.SqlClient {
|
||||
/// <param name="match_expression">The string that is to be matched.</param>
|
||||
/// <param name="pattern">The pattern which may involve wildcards %,_,[,],^.</param>
|
||||
/// <returns>true if there is a match.</returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "pattern", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "matchExpression", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "pattern", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "matchExpression", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
public static bool Like(string matchExpression, string pattern) {
|
||||
throw Error.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
|
||||
}
|
||||
@@ -576,9 +576,9 @@ namespace System.Data.Linq.SqlClient {
|
||||
/// <param name="pattern">The pattern which may involve wildcards %,_,[,],^.</param>
|
||||
/// <param name="escape_character">The escape character to use in front of %,_,[,],^ if they are not used as wildcards.</param>
|
||||
/// <returns>true if there is a match.</returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "pattern", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "matchExpression", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "escapeCharacter", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "pattern", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "matchExpression", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "escapeCharacter", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
public static bool Like(string matchExpression, string pattern, char escapeCharacter) {
|
||||
throw Error.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
|
||||
}
|
||||
@@ -591,7 +591,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
/// </summary>
|
||||
/// <param name="value">The string to take the length of.</param>
|
||||
/// <returns>length of the string</returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
internal static int RawLength(string value) {
|
||||
throw Error.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
|
||||
}
|
||||
@@ -602,7 +602,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
/// </summary>
|
||||
/// <param name="value">The byte array to take the length of.</param>
|
||||
/// <returns>length of the array</returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
internal static int RawLength(byte[] value) {
|
||||
throw Error.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
|
||||
}
|
||||
@@ -613,7 +613,7 @@ namespace System.Data.Linq.SqlClient {
|
||||
/// </summary>
|
||||
/// <param name="value">The Binary value to take the length of.</param>
|
||||
/// <returns>length of the Binary</returns>
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "[....]: Method is a placeholder for a server-side method.")]
|
||||
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value", Justification = "Microsoft: Method is a placeholder for a server-side method.")]
|
||||
internal static int RawLength(Binary value) {
|
||||
throw Error.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user