C# Class NSoft.NFramework.Data.DbFunc

Database 관련 Helper class
Show file Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
CellToString ( this row, string column ) : string

지정된 레코드의 해당 컬럼의 값을 문자열로 반환한다. 값이 없을 때에는 빈 문자열을 반환한다.

ConvertToDbTypedValue ( this dbType, object value ) : object

지정된 값을 지정된 DbType과 같은 형식으로 변환한다.

GetConnectionStringSettings ( ) : IEnumerable

환경설정에 설정된 ConnectionStrings 섹션의 ConnectionStringSettings 을 모두 가져온다.

GetDatabaseNames ( ) : IEnumerable

환경설정에 설정된 ConnectionStrings 섹션의 ConnectionStringSettings 의 이름을 가져온다.

GetDbType ( this languageType ) : DbType

닷넷 Language Type을 Database의 DbType으로 매핑한다.

GetLanguageType ( this dbType ) : Type

DbType 을 .NET Language Type으로 매핑합니다.

IsNull ( object value ) : bool

객체가 null 이거나 DBNull.Value이거나, INullable.IsNull 이면 true를 반환한다.

IsStringType ( this dbType ) : bool

지정된 DbType이 닷넷의 String 형식인지 검사한다.

LSet ( string value, int length ) : string

지정된 문자열의 값들을 왼쪽으로 맞추고, 지정된 길이만큼의 나머지 여백은 공백 로 채웁니다. string.PadRight(int,char)와 같은 기능을 수행합니다.

RSet ( string value, int length ) : string

지정된 문자열의 값들을 오른쪽으로 맞추고, 지정된 길이만큼의 안쪽 여백은 공백 로 채웁니다. string.PadRight(int,char)와 같은 기능을 수행합니다.

ToDataSet ( string xmlText ) : DataSet

지정된 XML 문자열을 읽어, DataSet을 빌드한다.

ToDataTable ( string xmlText ) : DataTable

지정된 XML 문자열을 읽어, DataTable을 빌드한다.

ToXmlText ( DataTable table, XmlWriteMode writeMode = XmlWriteMode.WriteSchema ) : string

DataTable 내용을 Xml Text로 변경한다.

Method Details

CellToString() public static method

지정된 레코드의 해당 컬럼의 값을 문자열로 반환한다. 값이 없을 때에는 빈 문자열을 반환한다.
public static CellToString ( this row, string column ) : string
row this
column string
return string

ConvertToDbTypedValue() public static method

지정된 값을 지정된 DbType과 같은 형식으로 변환한다.
public static ConvertToDbTypedValue ( this dbType, object value ) : object
dbType this 원하는
value object 변경할 값
return object

GetConnectionStringSettings() public static method

환경설정에 설정된 ConnectionStrings 섹션의 ConnectionStringSettings 을 모두 가져온다.
public static GetConnectionStringSettings ( ) : IEnumerable
return IEnumerable

GetDatabaseNames() public static method

환경설정에 설정된 ConnectionStrings 섹션의 ConnectionStringSettings 의 이름을 가져온다.
public static GetDatabaseNames ( ) : IEnumerable
return IEnumerable

GetDbType() public static method

닷넷 Language Type을 Database의 DbType으로 매핑한다.
public static GetDbType ( this languageType ) : DbType
languageType this
return DbType

GetLanguageType() public static method

DbType 을 .NET Language Type으로 매핑합니다.
public static GetLanguageType ( this dbType ) : Type
dbType this
return System.Type

IsNull() public static method

객체가 null 이거나 DBNull.Value이거나, INullable.IsNull 이면 true를 반환한다.
public static IsNull ( object value ) : bool
value object
return bool

IsStringType() public static method

지정된 DbType이 닷넷의 String 형식인지 검사한다.
public static IsStringType ( this dbType ) : bool
dbType this
return bool

LSet() public static method

지정된 문자열의 값들을 왼쪽으로 맞추고, 지정된 길이만큼의 나머지 여백은 공백 로 채웁니다. string.PadRight(int,char)와 같은 기능을 수행합니다.
public static LSet ( string value, int length ) : string
value string
length int
return string

RSet() public static method

지정된 문자열의 값들을 오른쪽으로 맞추고, 지정된 길이만큼의 안쪽 여백은 공백 로 채웁니다. string.PadRight(int,char)와 같은 기능을 수행합니다.
public static RSet ( string value, int length ) : string
value string
length int
return string

ToDataSet() public static method

지정된 XML 문자열을 읽어, DataSet을 빌드한다.
public static ToDataSet ( string xmlText ) : DataSet
xmlText string Xml Text
return System.Data.DataSet

ToDataTable() public static method

지정된 XML 문자열을 읽어, DataTable을 빌드한다.
public static ToDataTable ( string xmlText ) : DataTable
xmlText string Xml Text
return System.Data.DataTable

ToXmlText() public static method

DataTable 내용을 Xml Text로 변경한다.
public static ToXmlText ( DataTable table, XmlWriteMode writeMode = XmlWriteMode.WriteSchema ) : string
table System.Data.DataTable Instance of DataTable
writeMode XmlWriteMode Xml Text 생성 모드
return string