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


C# IRecord.GetDateTime方法代码示例

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


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

示例1: MapList

 internal static void MapList(IRecord record, List<SpamKeyword> list)
 {
     SpamKeyword m = new SpamKeyword();
     m.Id = record.GetInt32OrDefault(0, 0);
     m.Keyword = record.GetStringOrEmpty(1);
     m.Status = record.GetInt32OrDefault(2, 0);
     m.AddUserID = record.GetInt32OrDefault(3, 0);
     m.AddDate = record.GetDateTime(4);
     list.Add(m);
 }
开发者ID:sidny,项目名称:d4d-studio,代码行数:10,代码来源:SpamKeywordDao.cs

示例2: MapList

 internal static void MapList(IRecord record, List<Show> list)
 {
     Show m = new Show();
     m.ShowId = record.GetInt32OrDefault(0, 0);
     m.Title = record.GetStringOrEmpty(1);
     m.Body = record.GetStringOrEmpty(2);
     m.SImage = record.GetStringOrEmpty(3);
     m.LImage = record.GetStringOrEmpty(4);
     m.BandId = record.GetInt32OrDefault(5, 0);
     m.ShowDate = record.GetDateTime(6);
     m.ShowPlace = record.GetStringOrEmpty(7);
     m.AddUserID = record.GetInt32OrDefault(8, 0);
     m.AddDate = record.GetDateTime(9);
     m.Status = (PublishStatus)(record.GetInt32OrDefault(10, 0));
     m.EndDate = record.GetDateTime(11);
     list.Add(m);
 }
开发者ID:sidny,项目名称:d4d-studio,代码行数:17,代码来源:ShowDao.cs

示例3: MapMusicTitleList

        internal static void MapMusicTitleList(IRecord record, List<MusicTitle> list)
        {
            MusicTitle m = new MusicTitle();
            m.MusicId = record.GetInt32OrDefault(0, 0);
            m.Title = record.GetStringOrEmpty(1);
            m.Body = record.GetStringOrEmpty(2);
            m.SImage = record.GetStringOrEmpty(3);
            m.LImage = record.GetStringOrEmpty(4);
            m.BandId = record.GetInt32OrDefault(5, 0);
            m.PublishDate = record.GetDateTime(6);
            m.PublishYear = record.GetInt32OrDefault(7, 0);
            m.AddUserID = record.GetInt32OrDefault(8, 0);
            m.AddDate = record.GetDateTime(9);
            m.Status = (PublishStatus)(record.GetInt32OrDefault(10, 0));

            list.Add(m);
        }
开发者ID:sidny,项目名称:d4d-studio,代码行数:17,代码来源:MusicDao.cs

示例4: MapImageList

        internal static void MapImageList(IRecord record, List<Image> list)
        {
            Image m = new Image();

            m.ImageId = record.GetInt32OrDefault(0, 0);
            m.AlbumId = record.GetInt32OrDefault(1, 0);
            m.ImageName = record.GetStringOrEmpty(2);
            m.ImageFile = record.GetStringOrEmpty(3);
            m.AddUserID = record.GetInt32OrDefault(4, 0);
            m.AddDate = record.GetDateTime(5);
            m.Status = (PublishStatus)(record.GetInt32OrDefault(6, 0));
            m.SImageFile = record.GetStringOrEmpty(7);
            m.PublishDate = record.GetDateTimeOrEmpty(8);
            list.Add(m);
        }
开发者ID:sidny,项目名称:d4d-studio,代码行数:15,代码来源:AlbumDao.cs

示例5: MapMusicSongList

        internal static void MapMusicSongList(IRecord record, List<MusicSongList> list)
        {
            MusicSongList m = new MusicSongList();
            m.ListId = record.GetInt32OrDefault(0, 0);
            m.MusicId = record.GetInt32OrDefault(1, 0);
            m.SongName = record.GetStringOrEmpty(2);
            m.SongFile = record.GetStringOrEmpty(3);
            m.SongTime = record.GetStringOrEmpty(4);
            m.AddUserID = record.GetInt32OrDefault(5, 0);
            m.AddDate = record.GetDateTime(6);
            m.Status = (PublishStatus)(record.GetInt32OrDefault(7, 0));

            list.Add(m);
        }
开发者ID:sidny,项目名称:d4d-studio,代码行数:14,代码来源:MusicDao.cs

示例6: MapAlbumList

        internal static void MapAlbumList(IRecord record, List<Album> list)
        {
            Album m = new Album();
            m.AlbumId = record.GetInt32OrDefault(0, 0);
            m.Title = record.GetStringOrEmpty(1);
            m.BandId = record.GetInt32OrDefault(2, 0);
            m.PublishDate = record.GetDateTime(3);
            m.PublishYear = record.GetInt32OrDefault(4, 0);
            m.PublishMonth = record.GetInt32OrDefault(5, 0);
            m.AddUserID = record.GetInt32OrDefault(6, 0);
            m.AddDate = record.GetDateTime(7);
            m.Status = (PublishStatus)(record.GetInt32OrDefault(8, 0));
            m.TotalCount = record.GetInt32OrDefault(9, 0);
            m.SImage = record.GetStringOrEmpty(10);
            m.LImage = record.GetStringOrEmpty(11);

            list.Add(m);
        }
开发者ID:sidny,项目名称:d4d-studio,代码行数:18,代码来源:AlbumDao.cs

示例7: MapList

        internal static void MapList(IRecord record, List<News> list)
        {
            News m = new News();
            m.NewsId = record.GetInt32OrDefault(0, 0);
            m.Title = record.GetStringOrEmpty(1);
            m.Body = record.GetStringOrEmpty(2);
            m.Preview = record.GetStringOrEmpty(3);
            m.SImage = record.GetStringOrEmpty(4);
            m.LImage = record.GetStringOrEmpty(5);
            m.NewsType = record.GetInt32OrDefault(6, 0);
            m.Hits = record.GetInt32OrDefault(7, 0);
            m.PublishDate = record.GetDateTime(8);
            m.AddUserID = record.GetInt32OrDefault(9, 0);
            m.AddDate = record.GetDateTime(10);
            m.Status = (PublishStatus)(record.GetInt32OrDefault(11, 0));
            m.Remark = record.GetStringOrEmpty(12);

            list.Add(m);
        }
开发者ID:sidny,项目名称:d4d-studio,代码行数:19,代码来源:NewsDao.cs

示例8: Update

        /// <summary>
        /// Updates the specified record.
        /// </summary>
        /// <param name="record">The record.</param>
        public void Update(IRecord record)
        {
            if (record.FieldCount != this.FieldCount)
                throw new InvalidOperationException(Strings.ErrorJaggedResultSet);

            foreach (var v in _values.Values)
            {
                v.SetNull();
            }

            for (int i = 0; i < record.FieldCount; i++)
            {
                if (record.IsNull(i))
                    continue;

                var val = _values[_ordinalMap[i]];
                var type = val.Type;
                switch (type)
                {
                    case PropertyValueType.Blob:
                        ((BlobValue)val).Value = record.GetBlob(i);
                        break;
                    case PropertyValueType.Boolean:
                        ((BooleanValue)val).Value = record.GetBoolean(i);
                        break;
                    case PropertyValueType.Byte:
                        ((ByteValue)val).Value = record.GetByte(i);
                        break;
                    case PropertyValueType.Clob:
                        ((ClobValue)val).Value = record.GetClob(i);
                        break;
                    case PropertyValueType.DateTime:
                        ((DateTimeValue)val).Value = record.GetDateTime(i);
                        break;
                    case PropertyValueType.Double:
                        ((DoubleValue)val).Value = record.GetDouble(i);
                        break;
                    //case PropertyValueType.Feature:
                    //    {
                    //        List<IFeature> features = new List<IFeature>();
                    //        foreach (var feat in record.GetFeatureObject(i))
                    //        {
                    //            features.Add(feat);
                    //        }
                    //        ((FeatureValue)val).Value = features.ToArray();
                    //    }
                    //    break;
                    case PropertyValueType.Geometry:
                        ((GeometryValue)val).Value = record.GetGeometry(i);
                        break;
                    case PropertyValueType.Int16:
                        ((Int16Value)val).Value = record.GetInt16(i);
                        break;
                    case PropertyValueType.Int32:
                        ((Int32Value)val).Value = record.GetInt32(i);
                        break;
                    case PropertyValueType.Int64:
                        ((Int64Value)val).Value = record.GetInt64(i);
                        break;
                    //case PropertyValueType.Raster:
                    //    ((RasterValue)val).Value = record.GetRaster(i);
                    //    break;
                    case PropertyValueType.Single:
                        ((SingleValue)val).Value = record.GetSingle(i);
                        break;
                    case PropertyValueType.String:
                        ((StringValue)val).Value = record.GetString(i);
                        break;
                }
            }
        }
开发者ID:kanbang,项目名称:Colt,代码行数:75,代码来源:RecordBase.cs

示例9: MapList

 internal static void MapList(IRecord record, List<ShopItem> list)
 {
     ShopItem m = new ShopItem();
     m.Id = record.GetInt32OrDefault(0, 0);
     m.Name = record.GetStringOrEmpty(1);
     m.Description = record.GetStringOrEmpty(2);
     m.Price = record.GetDouble(3);
     m.SImage = record.GetStringOrEmpty(4);
     m.LImage = record.GetStringOrEmpty(5);
     m.PublishDate = record.GetDateTimeOrEmpty(6);
     m.AddUserID = record.GetInt32OrDefault(7, 0);
     m.AddDate = record.GetDateTime(8);
     m.Status = (PublishStatus)(record.GetInt32OrDefault(9, 0));
     m.Body = record.GetStringOrEmpty(10);
     m.Hits = record.GetInt32OrDefault(11, 0);
     m.BaseCountEachdeliver = record.GetInt32OrDefault(12, 5);
     m.Weight = record.GetDouble(13);
     list.Add(m);
 }
开发者ID:sidny,项目名称:d4d-studio,代码行数:19,代码来源:JaneShopItemsDao.cs

示例10: MapList

 internal static void MapList(IRecord record, List<ShopOrder> list)
 {
     ShopOrder m = new ShopOrder();
     m.Id = record.GetInt32OrDefault(0, 0);
     m.UserId = record.GetInt32OrDefault(1, 0);
     m.AddDate = record.GetDateTimeOrEmpty(2);
     m.Ordertype = (OrderType)(record.GetInt32OrDefault(3, 0));
     m.Address = record.GetStringOrEmpty(4);
     m.Email = record.GetStringOrEmpty(5);
     m.Mobile = record.GetStringOrEmpty(6);
     m.Paymoney = record.GetDouble(7);
     m.Paytype = (PayType)(record.GetInt32OrDefault(8, 0));
     m.Payresult = (PayResult)(record.GetInt32OrDefault(9, 0));
     m.Payremark = record.GetStringOrEmpty(10);
     m.Paythirdnum = record.GetStringOrEmpty(11);
     m.Paydate = record.GetDateTime(12);
     m.ZipCode = record.GetStringOrEmpty(13);
     m.UserName = record.GetStringOrEmpty(14);
     m.RegionId = record.GetInt32OrDefault(15, 0);
     m.Freight = record.GetDouble(16);
      m.RegionStr = record.GetStringOrEmpty(17);
     list.Add(m);
 }
开发者ID:sidny,项目名称:d4d-studio,代码行数:23,代码来源:JaneShopOrdersDao.cs


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