File tree 2 files changed +28
-16
lines changed 2 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 13
13
[ assembly: AssemblyTitle ( ".NET Standard 2.0" ) ]
14
14
#endif
15
15
16
- [ assembly: AssemblyVersion ( "11.0.3 .0" ) ]
16
+ [ assembly: AssemblyVersion ( "11.0.4 .0" ) ]
17
17
[ assembly: AssemblyCopyright ( "Copyright © Eben Roux 2019" ) ]
18
18
[ assembly: AssemblyProduct ( "Shuttle.Core.Data" ) ]
19
19
[ assembly: AssemblyCompany ( "Shuttle" ) ]
20
20
[ assembly: AssemblyConfiguration ( "Release" ) ]
21
- [ assembly: AssemblyInformationalVersion ( "11.0.3 " ) ]
21
+ [ assembly: AssemblyInformationalVersion ( "11.0.4 " ) ]
22
22
[ assembly: ComVisible ( false ) ]
Original file line number Diff line number Diff line change 1
- namespace Shuttle . Core . Data
2
- {
3
- public static class RecordNotFoundExtensions
4
- {
5
- public static T GuardAgainstRecordNotFound < T > ( this T entity , object id ) where T : class
6
- {
7
- if ( entity == null )
8
- {
9
- throw RecordNotFoundException . For < T > ( id ) ;
10
- }
11
-
12
- return entity ;
13
- }
14
- }
1
+ using System . Data ;
2
+
3
+ namespace Shuttle . Core . Data
4
+ {
5
+ public static class RecordNotFoundExtensions
6
+ {
7
+ public static T GuardAgainstRecordNotFound < T > ( this T entity , object id ) where T : class
8
+ {
9
+ if ( entity == null )
10
+ {
11
+ throw RecordNotFoundException . For < T > ( id ) ;
12
+ }
13
+
14
+ return entity ;
15
+ }
16
+
17
+ public static DataRow GuardAgainstRecordNotFound < T > ( this DataRow row , object id ) where T : class
18
+ {
19
+ if ( row == null )
20
+ {
21
+ throw RecordNotFoundException . For < T > ( id ) ;
22
+ }
23
+
24
+ return row ;
25
+ }
26
+ }
15
27
}
You can’t perform that action at this time.
0 commit comments