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


C# DataRow.Field方法代码示例

本文整理汇总了C#中System.Data.DataRow.Field方法的典型用法代码示例。如果您正苦于以下问题:C# DataRow.Field方法的具体用法?C# DataRow.Field怎么用?C# DataRow.Field使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Data.DataRow的用法示例。


在下文中一共展示了DataRow.Field方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DimTime

 public DimTime(DataRow row)
 {
     this.TimeId = row.Field<int>("timeid");
     this.Hour = row.Field<Int16>("hour");
     this.Minute = row.Field<Int16>("minute");
     this.Second = row.Field<Int16>("second");
 }
开发者ID:JohanGregersen,项目名称:sw9project,代码行数:7,代码来源:DimTime.cs

示例2: board_stats_Result

 /// <summary>
 /// Initializes a new instance of the <see cref="board_stats_Result"/> class.
 /// </summary>
 /// <param name="dr">
 /// The dr.
 /// </param>
 public board_stats_Result(DataRow dr)
 {
     this.NumPosts = dr.Field<int>("NumPosts");
     this.NumTopics = dr.Field<int>("NumTopics");
     this.NumUsers = dr.Field<int>("NumUsers");
     this.BoardStart = dr.Field<DateTime>("BoardStart");
 }
开发者ID:vzrus,项目名称:VZF,代码行数:13,代码来源:board_stats_Result.cs

示例3: parmType

 public parmType(DataRow drow)
 {
     id = Convert.ToInt32(drow[0].ToString());
     typename = drow.Field<string>(1);
     sortorder = Convert.ToInt32(drow[2].ToString());
     shortname = drow.Field<string>(3);
 }
开发者ID:ricsin19,项目名称:FoodReceipt,代码行数:7,代码来源:parmTypeCodes.cs

示例4: ServiceLineModel

 public ServiceLineModel(DataRow row)
 {
     DiagnosisCodeGroupID = row.Field<int>("DiagnosisCodeGroupID");
     Description = row.Field<string>("Description");
     DisplayOrder = row.Field<int>("DisplayOrder");
     Active = row.Field<bool>("Active");
 }
开发者ID:chuckfrazier,项目名称:DataPlatform,代码行数:7,代码来源:ServiceLineModel.cs

示例5: LookupListModel

 public LookupListModel(DataRow row)
 {
     ID = row.Field<int>("ID");
     Name = row.Field<string>("Name");
     Description = row.Field<string>("Description");
     ParentID = row.Field<int?>("ParentID");
 }
开发者ID:chuckfrazier,项目名称:DataPlatform,代码行数:7,代码来源:LookupListModel.cs

示例6: TacticBrand

 public TacticBrand (DataRow row)
 {
     if (row.Table.Columns.Contains("TacticID"))
         TacticID = row.Field<int>("TacticID");
     if (row.Table.Columns.Contains("BrandID"))
         BrandID = row.Field<int>("BrandID");
 }
开发者ID:chuckfrazier,项目名称:DataPlatform,代码行数:7,代码来源:TacticBrand.generated.cs

示例7: DeckCloudUploadInformation

			public DeckCloudUploadInformation(DataRow row)
			{
				// Get the upload parameters.
				Action = row.Field<string>("action");
				ContentType = row.Field<string>("Content-Type");
				XAmzDate = row.Field<string>("x-amz-date");
				Authorization = row.Field<string>("Authorization");
			}
开发者ID:killbug2004,项目名称:WSProf,代码行数:8,代码来源:DeckCloudFileResponse.cs

示例8: PopulateSession

 private static Session PopulateSession(DataRow session)
 {
     return new Session
     {
         SessionId = session.Field<Guid>("SessionId").ToString(),
         UserId = session.Field<int>("UserId")
     };
 }
开发者ID:MMP-HCKMCR,项目名称:geocar-web,代码行数:8,代码来源:SessionRepository.cs

示例9: LoadFromDatabase

		protected override bool LoadFromDatabase(DataRow row) {
			Index = row.Field<short>("index");
			ID = row.Field<int>("id");
			Level = row.Field<ushort>("level");
			Type = (EHotkeyType)row.Field<int>("type");

			return true;
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:8,代码来源:CharacterHotkey.cs

示例10: HydrateEmployeeDTO

 private static PersonDTO HydrateEmployeeDTO(DataRow dr)
 {
     PersonDTO result = new PersonDTO();
     result.BusinessEntityId = dr.Field<int>("BusinessEntityID");
     result.PersonType = dr.Field<string>("PersonType");
     result.NameStyle = dr.Field<bool>("NameStyle");
     result.Title = dr.Field<string>("Title");
     return result;
 }
开发者ID:pbabbott,项目名称:MyDotNetPatterns,代码行数:9,代码来源:PersonDAI.cs

示例11: Settings

 public Settings (DataRow row)
 {
     if (row.Table.Columns.Contains("Key"))
         Key = row.Field<string>("Key");
     if (row.Table.Columns.Contains("Value"))
         Value = row.Field<string>("Value");
     if (row.Table.Columns.Contains("Description"))
         Description = row.Field<string>("Description");
 }
开发者ID:chuckfrazier,项目名称:DataPlatform,代码行数:9,代码来源:Settings.generated.cs

示例12: AddCapture

        private void AddCapture(DataRow dr)
       {
            CaptureTesting capture = new CaptureTesting();
            capture.captureId = dr.Field<String>("captureId");
            capture.capturedOn = dr.Field<DateTime?>("capturedOn");
            capture.numberFrames = dr.Field<Int32>("numberFrames");

            list.Add(capture);
        }
开发者ID:jbliss02,项目名称:BScProject_IPTesting,代码行数:9,代码来源:CaptureListTesting.cs

示例13: TacticDiagnosisGroup

 public TacticDiagnosisGroup (DataRow row)
 {
     if (row.Table.Columns.Contains("TacticDiagnosisGroupID"))
         TacticDiagnosisGroupID = row.Field<int>("TacticDiagnosisGroupID");
     if (row.Table.Columns.Contains("DiagnosisCodeGroupID"))
         DiagnosisCodeGroupID = row.Field<int>("DiagnosisCodeGroupID");
     if (row.Table.Columns.Contains("TacticID"))
         TacticID = row.Field<int>("TacticID");
 }
开发者ID:chuckfrazier,项目名称:DataPlatform,代码行数:9,代码来源:TacticDiagnosisGroup.generated.cs

示例14: AddResumeRow

            public void AddResumeRow(DataRow x)
            {
                XSSFRow row = this._Sheet.CreateRow(this._RowIndexResume) as XSSFRow;

                row.CreateCell(00, CellType.NUMERIC).SetCellValue(x.Field<int>("DESID"));
                row.CreateCell(01, CellType.NUMERIC).SetCellValue(x.Field<int>("Cajas"));
                row.CreateCell(02, CellType.NUMERIC).SetCellValue(x.Field<int>("Registros"));
                row.CreateCell(03, CellType.NUMERIC).SetCellValue(x.Field<int>("Imagenes"));
                row.CreateCell(04, CellType.STRING).SetCellValue(x.Field<long>("PesoEstimado").FormatBytes());
            }
开发者ID:Regisfra,项目名称:Regisfra.WebApp,代码行数:10,代码来源:WorkerRoleExcel.cs

示例15: PopulateTagType

 private static TagType PopulateTagType(DataRow tagType)
 {
     return new TagType
     {
         TagTypeId = tagType.Field<int>("TagTypeId"),
         TypeName = tagType.Field<string>("TypeName"),
         Points = tagType.Field<int>("Points"),
         LockoutTimePeriod = tagType.Field<int>("LockoutTimePeriod")
     };
 }
开发者ID:MMP-HCKMCR,项目名称:geocar-web,代码行数:10,代码来源:TagTypeRepository.cs


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