จัดระเบียบ Code ใหม่ และเพิ่ม Extension Method
implement GenericRepository Class ใหม่
This commit is contained in:
parent
e49c6a4aca
commit
89de09d213
21 changed files with 1439 additions and 63 deletions
13
BMA.EHR.Domain/Extensions/DataReaderExtension.cs
Normal file
13
BMA.EHR.Domain/Extensions/DataReaderExtension.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Data.Common;
|
||||
|
||||
namespace BMA.EHR.Domain.Extensions
|
||||
{
|
||||
public static class DataReaderExtension
|
||||
{
|
||||
public static bool IsDbNull(this DbDataReader dataReader, string columnName)
|
||||
{
|
||||
return dataReader[columnName] == DBNull.Value;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue