Skip to content

Commit c5c36f0

Browse files
committed
Summary fix
1 parent 9b38941 commit c5c36f0

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

Orm/Xtensive.Orm/Orm/Session.Validation.cs

Lines changed: 7 additions & 13 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) 2008-2021 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: Alex Yakunin
55
// Created: 2008.11.07
66

@@ -22,19 +22,13 @@ public partial class Session
2222
/// Validates all instances registered in <see cref="ValidationContext"/>
2323
/// of current <see cref="Session"/>.
2424
/// </summary>
25-
public void Validate()
26-
{
27-
ValidationContext.Validate(ValidationReason.UserRequest);
28-
}
25+
public void Validate() => ValidationContext.Validate(ValidationReason.UserRequest);
2926

3027
/// <summary>
3128
/// Validates all registered entities similar to <see cref="Validate"/> method
32-
/// and returns all validation exceptions.
29+
/// and returns all validation errors.
3330
/// </summary>
34-
/// <returns>List exceptions occured during validation.</returns>
35-
public IList<EntityErrorInfo> ValidateAndGetErrors()
36-
{
37-
return ValidationContext.ValidateAndGetErrors();
38-
}
31+
/// <returns>List errors occured during validation.</returns>
32+
public IList<EntityErrorInfo> ValidateAndGetErrors() => ValidationContext.ValidateAndGetErrors();
3933
}
4034
}

0 commit comments

Comments
 (0)