本文整理汇总了C#中DataCollection.AddRange方法的典型用法代码示例。如果您正苦于以下问题:C# DataCollection.AddRange方法的具体用法?C# DataCollection.AddRange怎么用?C# DataCollection.AddRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataCollection
的用法示例。
在下文中一共展示了DataCollection.AddRange方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateBaseList
static DataCollection<object> CreateBaseList(IEnumerable source)
{
Type elementType = source.AsQueryable().ElementType;
var list = new DataCollection<object>(elementType);
list.AddRange(source);
return list;
}
示例2: LoadPicturesAsStandBildTVEntry
public DataCollection<String[]> LoadPicturesAsStandBildTVEntry(DataRow BeitragBeschreibungRow)
{
DataCollection<String[]> FramedMaterial = new DataCollection<String[]>();
FramedMaterial.AddRange(StandBildLinks(BeitragBeschreibungRow["TableName"].ToString(),
Convert.ToString(BeitragBeschreibungRow["BeitragID"])));
return FramedMaterial;
}
示例3: LoadAllSelectionData
private DataCollection<SelectionDataClass> LoadAllSelectionData()
{
if (TableSelectionCache.ContainsKey(ViewNameForSelection) == false)
{
WCFStandardsNS.WCFStandards DataAccess = new WCFStandardsNS.WCFStandards();
DataSet PersonenDataSet = DataAccess.GetCommonDataSet("Select " + String.Join(", ", ItemsToSelectForSelection)
+ " from " + ViewNameForSelection + " where (" + TemplateManagement.GetWhereClauseFromBereich(BereichToUse)
+ " ) order by " + String.Join(", ", SortingItemsForSelection));
DataCollection<SelectionDataClass> PersistentResult = GetSelectionDataFormatting(PersonenDataSet.Tables[ViewNameForSelection]);
TableSelectionCache [ViewNameForSelection] = PersistentResult;
}
DataCollection<SelectionDataClass> Result = new DataCollection<SelectionDataClass>();
Result.AddRange(TableSelectionCache[ViewNameForSelection]);
return Result;
}
示例4: LoadPicturesAsInformationEntry
public DataCollection<String[]> LoadPicturesAsInformationEntry(DataRow BeitragBeschreibungRow)
{
DataCollection<String[]> FramedMaterial = new DataCollection<String[]>();
if (MaterialData == null)
return FramedMaterial;
foreach (DataRow InformationenAddOnRow in MaterialData.Tables["InformationenAddOn"].Rows)
{
DataRow TableRow = GetMaterialTableRow(InformationenAddOnRow);
if (InformationenAddOnRow["ActuallBezeichner"].ToString().IndexOf("MultiMedia") != -1)
{
if ((TableRow["TableID"] == Convert.DBNull)
|| (((Guid) TableRow["TableID"]) == Guid.Empty))
continue;
FramedMaterial.AddRange(StandBildLinks(TableRow["TableName"].ToString(),
Convert.ToString(TableRow["TableID"])));
}
}
return FramedMaterial;
}
示例5: LoadPicturesAsStandBildTVEntry
public DataCollection<String[]> LoadPicturesAsStandBildTVEntry(CommonSearchClass SearchRoot)
{
DataCollection<String[]> FramedMaterial = new DataCollection<String[]>();
FramedMaterial.AddRange(StandBildLinks(SearchRoot.TableName,
SearchRoot.ID.ToString( )));
return FramedMaterial;
}