当前位置: 首页>>代码示例>>C#>>正文


C# DataCollection.AddRange方法代码示例

本文整理汇总了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;
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:7,代码来源:CollectionDataSource.cs

示例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;
            }
开发者ID:heinzsack,项目名称:DEV,代码行数:8,代码来源:EntryPresentationModel.cs

示例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;

			}
开发者ID:heinzsack,项目名称:DEV,代码行数:17,代码来源:CommonTableDataModell.cs

示例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;
     }
开发者ID:heinzsack,项目名称:DEV,代码行数:19,代码来源:EntryPresentationModel.cs

示例5: LoadPicturesAsStandBildTVEntry

        public DataCollection<String[]> LoadPicturesAsStandBildTVEntry(CommonSearchClass SearchRoot)
            {
            DataCollection<String[]> FramedMaterial = new DataCollection<String[]>();
            FramedMaterial.AddRange(StandBildLinks(SearchRoot.TableName,
                SearchRoot.ID.ToString( )));

            return FramedMaterial;
            }
开发者ID:heinzsack,项目名称:DEV,代码行数:8,代码来源:EntryPresentationModel.cs


注:本文中的DataCollection.AddRange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。