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 .
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}
You can’t perform that action at this time.
0 commit comments