Skip to content

Commit 130c53c

Browse files
committed
Summaries for files and methods
1 parent 3aa9d48 commit 130c53c

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

Orm/Xtensive.Orm.MySql/Sql.Drivers.MySql/DriverFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2021 Xtensive LLC.
1+
// Copyright (C) 2011-2022 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44
// Created by: Malisa Ncube

Orm/Xtensive.Orm/Sql/Dml/Extensions.cs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Denis Krjuchkov
55
// Created: 2009.08.24
66

@@ -28,11 +28,29 @@ public static bool IsNullReference(this SqlExpression expression)
2828
return ReferenceEquals(expression, null);
2929
}
3030

31+
/// <summary>
32+
/// Checks whether <paramref name="available"/> contains all flags of given <paramref name="required"/>.
33+
/// </summary>
34+
/// <param name="available">All flags.</param>
35+
/// <param name="required">Flags to check existance.</param>
36+
/// <returns>
37+
/// <see langword="true"/> if <paramref name="available"/> contains all flags of <paramref name="required"/>,
38+
/// otherwise, <see langword="false"/>.
39+
/// </returns>
3140
public static bool Supports(this SqlLockType available, SqlLockType required)
3241
{
3342
return (available & required)==required;
3443
}
3544

45+
/// <summary>
46+
/// Checks whether <paramref name="available"/> contains any flag of given <paramref name="required"/>.
47+
/// </summary>
48+
/// <param name="available">All flags.</param>
49+
/// <param name="required">Flags to check existance.</param>
50+
/// <returns>
51+
/// <see langword="true"/> if <paramref name="available"/> contains any flag of <paramref name="required"/>,
52+
/// otherwise, <see langword="false"/>.
53+
/// </returns>
3654
public static bool SupportsAny(this SqlLockType available, SqlLockType required)
3755
{
3856
return (available | required) == required;

0 commit comments

Comments
 (0)