本文整理汇总了C#中Sybase.Collections.GenericList.AddThis方法的典型用法代码示例。如果您正苦于以下问题:C# Sybase.Collections.GenericList.AddThis方法的具体用法?C# Sybase.Collections.GenericList.AddThis怎么用?C# Sybase.Collections.GenericList.AddThis使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sybase.Collections.GenericList
的用法示例。
在下文中一共展示了Sybase.Collections.GenericList.AddThis方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetChangeLogs
/// <summary>
/// Gets the change logs based on the query filtering.
/// </summary>
/// <param name="query">Query object.</param>
/// <returns>Change logs.</returns>
/// <remarks> </remarks>
public static Sybase.Collections.GenericList<Sybase.Persistence.IChangeLog> GetChangeLogs(Sybase.Persistence.Query query)
{
Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ChangeLogImpl> _list = YPF.Comercial.RRCC.SUP.ChangeLogImpl.FindWithQuery(query);
Sybase.Collections.GenericList<Sybase.Persistence.IChangeLog> _logs = new Sybase.Collections.GenericList<Sybase.Persistence.IChangeLog>();
for (int i = 0; i < _list.Size(); i++)
{
_logs.AddThis((Sybase.Persistence.IChangeLog)(_list[i]));
}
return _logs;
}
示例2: FindByEntity
/// <summary>
/// Returns the log record list.
/// </summary>
public static Sybase.Collections.GenericList<Sybase.Persistence.ILogRecord> FindByEntity(string entityName, string keyValue)
{
Sybase.Persistence.Query _query = Sybase.Persistence.AbstractEntity.GetLogRecordQuery(entityName, keyValue);
Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.LogRecordImpl> _logList = YPF.Comercial.RRCC.SUP.LogRecordImpl.FindWithQuery(_query);
Sybase.Collections.GenericList<Sybase.Persistence.ILogRecord> _logs = new Sybase.Collections.GenericList<Sybase.Persistence.ILogRecord>();
for (int i = 0; i < _logList.Size(); i++)
{
_logs.AddThis((Sybase.Persistence.ILogRecord)_logList[i]);
}
return _logs;
}