File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 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 .
4
4
// Created by: Alex Yakunin
5
5
// Created: 2008.11.07
6
6
@@ -22,19 +22,13 @@ public partial class Session
22
22
/// Validates all instances registered in <see cref="ValidationContext"/>
23
23
/// of current <see cref="Session"/>.
24
24
/// </summary>
25
- public void Validate ( )
26
- {
27
- ValidationContext . Validate ( ValidationReason . UserRequest ) ;
28
- }
25
+ public void Validate ( ) => ValidationContext . Validate ( ValidationReason . UserRequest ) ;
29
26
30
27
/// <summary>
31
28
/// Validates all registered entities similar to <see cref="Validate"/> method
32
- /// and returns all validation exceptions .
29
+ /// and returns all validation errors .
33
30
/// </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 ( ) ;
39
33
}
40
34
}
You can’t perform that action at this time.
0 commit comments