本文整理汇总了C#中IDbConnection.SelectSingle方法的典型用法代码示例。如果您正苦于以下问题:C# IDbConnection.SelectSingle方法的具体用法?C# IDbConnection.SelectSingle怎么用?C# IDbConnection.SelectSingle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDbConnection
的用法示例。
在下文中一共展示了IDbConnection.SelectSingle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetSingle_PersonCore
private PersonCore GetSingle_PersonCore(IDbConnection conn, IWhere where)
{
var single = conn.SelectSingle<PersonCore>("PersonCore")
.Fields("PK_User,Code,Name,ShortName,IDCardNumber,Sex,Age,Email,Mobile,Birthdate,JoinWorkDate,Censusaddr,NC_PK_User,NC_Modifiedtime")
.Where(where)
.Execute();
return single;
}
示例2: GetSingle_Organization
private Organization GetSingle_Organization(IDbConnection conn, IWhere where)
{
var single = conn.SelectSingle<Organization>("Organization")
.Fields("PK_Org,InnerCode,Name,ShortName,PK_FOrg,PK_Group,NC_PK_Org,NC_Modifiedtime")
.Where(where)
.Execute();
return single;
}
示例3: GetSingle_Department
private Department GetSingle_Department(IDbConnection conn, IWhere where)
{
var single = conn.SelectSingle<Department>("Department")
.Fields("PK_Dept,InnerCode,Name,PK_FDept,PK_Org,PK_Group,NC_PK_Dept,NC_Modifiedtime")
.Where(where)
.Execute();
return single;
}
示例4: GetSingle_OrgGroup
private OrgGroup GetSingle_OrgGroup(IDbConnection conn, IWhere where)
{
var single = conn.SelectSingle<OrgGroup>("OrgGroup")
.Fields("PK_Group,InnerCode,Name,NC_PK_Group,NC_Modifiedtime")
.Where(where)
.Execute();
return single;
}