本文整理汇总了C#中CY.MarkOld方法的典型用法代码示例。如果您正苦于以下问题:C# CY.MarkOld方法的具体用法?C# CY.MarkOld怎么用?C# CY.MarkOld使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CY
的用法示例。
在下文中一共展示了CY.MarkOld方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetGroupAccountByAccountGroup
// ��̨����
public IList<CY.UME.Core.Business.AccountGroup> GetGroupAccountByAccountGroup(CY.UME.Core.Business.AccountGroup accountGroup, CY.UME.Core.PagingInfo pagingInfo)
{
IList<Core.Business.AccountGroup> accountGroupList = new List<Core.Business.AccountGroup>();
SqlServerUtility sql = new SqlServerUtility(SqlConnection);
#region ����
string tables = "AccountGroup";
string pK = "Id";
string sort = "Id Desc";
int pageNum = pagingInfo.CurrentPage;
int pageSize = pagingInfo.PageSize;
string fields = "[Id], [AccountId],[GroupId],[DateCreated],[Role],[LastVisitDate],[Name]";
string group = String.Empty;
string filter = strFilter(accountGroup);
#endregion
sql.AddParameter("@Tables", SqlDbType.VarChar, tables);
sql.AddParameter("@PK", SqlDbType.VarChar, pK);
sql.AddParameter("@Sort", SqlDbType.VarChar, sort);
sql.AddParameter("@PageNumber", SqlDbType.Int, pageNum);
sql.AddParameter("@PageSize", SqlDbType.Int, pageSize);
sql.AddParameter("@Fields", SqlDbType.VarChar, fields);
sql.AddParameter("@Filter", SqlDbType.VarChar, filter);
sql.AddParameter("@Group", SqlDbType.VarChar, group);
SqlDataReader reader = sql.ExecuteSPReader("Paging_RowCount");
if (reader != null)
{
while (reader.Read())
{
Core.Business.AccountGroup ag = new AccountGroup();
if (!reader.IsDBNull(0)) ag.Id = reader.GetInt64(0);
if (!reader.IsDBNull(1)) ag.AccountId = reader.GetInt64(1);
if (!reader.IsDBNull(2)) ag.GroupId = reader.GetInt32(2);
if (!reader.IsDBNull(3)) ag.DateCreated = reader.GetDateTime(3);
if (!reader.IsDBNull(4)) ag.Role = reader.GetInt32(4);
if (!reader.IsDBNull(5)) ag.LastVisitDate = reader.GetDateTime(5);
if (!reader.IsDBNull(6)) ag.Name = reader.GetString(6);
accountGroup.MarkOld();
accountGroupList.Add(ag);
}
reader.Close();
}
return accountGroupList;
}