本文整理汇总了C#中IDataReader.GetInt64方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.GetInt64方法的具体用法?C# IDataReader.GetInt64怎么用?C# IDataReader.GetInt64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataReader
的用法示例。
在下文中一共展示了IDataReader.GetInt64方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UserStatus
public UserStatus(IDataReader reader)
: this()
{
StatusId = reader.GetInt64(0);
StatusKey = reader.GetString(1);
ParentKey = reader.GetString(2);
ProfileId = reader.GetInt64(3);
SourceChannelId = reader.GetInt64(4);
TargetChannelId = reader.GetString(5);
ChannelStatusKey = reader.GetString(6);
From = new SourceAddress(reader.GetString(7));
To = new SourceAddress(reader.GetString(8));
Status = reader.GetString(9);
InReplyTo = reader.GetString(10);
StatusType = reader.GetInt32(11);
SearchKeyword = reader.GetString(12);
IsRead = reader.ReadBoolean(13);
SortDate = reader.ReadDateTime(14);
DateRead = reader.ReadDateTimeOrNull(15);
DateCreated = reader.ReadDateTime(16);
}
示例2: DocumentVersion
public DocumentVersion(IDataReader reader)
: this()
{
VersionId = reader.GetInt64(0);
DocumentId = reader.GetInt64(1);
MessageId = reader.ReadInt64OrNull(2);
Filename = reader.GetString(3);
SourceChannelId = reader.GetInt64(4);
TargetChannelId = reader.GetInt64(5);
From = new SourceAddress(reader.GetString(6));
To = new SourceAddressCollection(reader.GetString(7));
StreamName = reader.GetString(8);
Crc32 = reader.GetString(9);
Size = reader.GetInt32(10);
DateReceived = reader.ReadDateTimeOrNull(11);
DateSent = reader.ReadDateTimeOrNull(12);
DateCreated = reader.ReadDateTimeOrNull(13);
DateModified = reader.ReadDateTimeOrNull(14);
}
示例3: LoadContents
protected override void LoadContents(IDbConnection connection, ref IDataReader reader)
{
try
{
var data_inicio = (DateTime)this.mParameters[0];
var data_fim = (DateTime)this.mParameters[1];
reader = DBAbstractDataLayer.DataAccessRules.MovimentoRule.Current.GetAllMovimentos(data_inicio, data_fim, connection);
}
catch (Exception e)
{
Debug.WriteLine(e);
throw;
}
var mov = default(Movimento);
movimentos = new List<Movimento>();
while (reader.Read())
{
mov = new Movimento();
mov.IDDocumento = reader.GetInt64(0);
mov.CodDocumento = reader.GetString(1);
mov.TituloDocumento = reader.GetString(2);
mov.IDMovimento = reader.GetInt64(3);
mov.TipoMovimento = reader.GetString(4);
mov.DataMovimento = reader.GetValue(5).ToString();
mov.Entidade = reader.GetString(6);
movimentos.Add(mov);
DoAddedEntries(1);
}
}
示例4: Person
public Person(IDataReader reader)
: this()
{
PersonId = reader.GetInt64(0);
if (!reader.IsDBNull(1))
PersonKey = reader.GetString(1);
if (!reader.IsDBNull(2))
RedirectPersonId = reader.ReadInt64OrNull(2);
if (!reader.IsDBNull(3))
SourceChannelId = reader.GetInt64(3);
if (!reader.IsDBNull(4))
Firstname = reader.GetString(4);
if (!reader.IsDBNull(5))
Lastname = reader.GetString(5);
if (!reader.IsDBNull(6))
DateOfBirth = reader.ReadDateTimeOrNull(6);
if (!reader.IsDBNull(7))
Locale = reader.GetString(7);
if (!reader.IsDBNull(8))
Gender = reader.GetString(8);
if (!reader.IsDBNull(9))
Timezone = reader.GetString(9);
if (!reader.IsDBNull(10))
DateCreated = reader.ReadDateTime(10);
}
示例5: populateModel
private RowModel populateModel(IDataReader reader)
{
RowModel r = new RowModel();
r.id = reader.GetInt64(0);
r.tableId = reader.GetInt64(1);
return r;
}
示例6: populateModel
private ConstraintModel populateModel(IDataReader reader)
{
ConstraintModel cm = new ConstraintModel();
cm.id = reader.GetInt64(0);
cm.rowId = reader.GetInt64(1);
cm.dataField = reader.GetString(2);
return cm;
}
示例7: populateModel
private ColumnModel populateModel(IDataReader reader)
{
ColumnModel c = new ColumnModel();
c.id = reader.GetInt64(0);
c.tableId = reader.GetInt64(1);
c.name = reader.GetString(2);
return c;
}
示例8: Create
public Job Create(IDataReader dr, string alias)
{
var journey = new Journey(_ships);
journey.FromSolarSystemID = dr.GetInt64(string.Concat(alias, "_StartSolarSystemID"));
journey.ToSolarSystemID = dr.GetInt64(string.Concat(alias, "_EndSolarSystemID"));
return journey;
}
示例9: MeetingRoomCheckin
private MeetingRoomCheckin(IDataReader reader)
{
this.Id = reader.GetInt64(0);
this.Day = reader.GetInt64(1);
this.CheckinTimestamp = reader.GetInt64(2);
this.User = reader.GetString(3);
this.MeetingRoom = reader.GetInt64(4);
this.MeetingRoomBooking = reader.GetInt64(5);
}
示例10: Document
public Document(IDataReader reader)
: this()
{
DocumentId = reader.GetInt64(0);
if (!reader.IsDBNull(1))
Filename = reader.GetString(1);
if (!reader.IsDBNull(2))
SourceChannelId = reader.GetInt64(2);
if (!reader.IsDBNull(3))
TargetChannelId = reader.GetInt64(3);
if (!reader.IsDBNull(4))
ContentType = (ContentType) Enum.Parse(typeof (ContentType), reader.GetString(4));
if (!reader.IsDBNull(5))
ContentId = reader.GetString(5);
if (!reader.IsDBNull(6))
DocumentKey = reader.GetString(6);
if (!reader.IsDBNull(7))
StreamName = reader.GetString(7);
if (!reader.IsDBNull(8))
Crc32 = reader.GetString(8);
if (!reader.IsDBNull(9))
Size = reader.GetInt32(9);
if (!reader.IsDBNull(10))
IsRead = reader.ReadBoolean(10);
if (!reader.IsDBNull(11))
DocumentFolder = reader.GetInt32(11);
if (!reader.IsDBNull(12))
Labels = reader.GetString(12);
if (!reader.IsDBNull(13))
DateReceived = reader.ReadDateTimeOrNull(13);
if (!reader.IsDBNull(14))
DateSent = reader.ReadDateTimeOrNull(14);
if (!reader.IsDBNull(15))
DateCreated = reader.ReadDateTimeOrNull(15);
if (!reader.IsDBNull(16))
DateModified = reader.ReadDateTimeOrNull(16);
}
示例11: UserStatusAttachment
public UserStatusAttachment(IDataReader reader)
: this()
{
AttachmentId = reader.GetInt64(0);
UserId = reader.GetInt64(1);
StatusKey = reader.GetString(2);
PreviewImageUrl = reader.GetString(3);
PreviewAltText = reader.GetString(4);
TargetUrl = reader.GetString(5);
MediaType = reader.GetInt16(6);
DateCreated = reader.ReadDateTime(7);
}
示例12: ReadColumn
protected virtual IDataTableColumn ReadColumn(IDataReader dataReader, string table)
{
var column = new DataTableColumn();
column.TableSchema = "main";
column.TableName = table;
column.ColumnName = dataReader.GetString(1);
column.UnpackRawDbType(dataReader.GetString(2));
column.FullType = dataReader.GetString(2);
column.Nullable = dataReader.GetInt64(3) == 0;
column.PrimaryKey = dataReader.GetInt64(5) == 1;
// SQLite says: if it is a primary key of integer type, then it is automatically generated
column.Generated = column.PrimaryKey.Value && MapDbType(column.ColumnName, column) == typeof(int);
return column;
}
示例13: Read
public static SocialEntry Read(Int64 character, IDataReader reader, SocialType type)
{
if (!reader.Read())
return null;
SocialEntry entry;
if (type == SocialType.Enemy)
{
var eentry = new EnemyEntry
{
Race = reader.GetByte(1)
};
//eentry.TimesKilled = reader.GetByte("TimesKilled");
//eentry.TimesKilledBy = reader.GetByte("TimesKilledBy");
entry = eentry;
}
else
entry = new SocialEntry();
entry.Character = character;
entry.OtherCharacter = reader.GetInt64(0);
entry.Level = reader.GetByte(3);
entry.LastContinentId = reader.GetUInt32(4);
entry.Class = reader.GetByte(2);
entry.Online = false;
entry.Name = reader.GetString(5);
entry.Type = (SocialType)reader.GetByte(6);
return entry;
}
示例14: ModuleInfo
/// <summary>
/// Initializes a new instance of the ModuleInfo class (Overloaded constructor)
/// </summary>
/// <param name="rdr">
/// Safe DataReader
/// </param>
public ModuleInfo(IDataReader rdr)
{
mID = rdr.GetInt64(rdr.GetOrdinal("ID"));
mName = rdr.GetString(rdr.GetOrdinal("ModuleName"));
// mDescription = rdr.GetString("Description");
mIsEnabled = rdr.GetString(rdr.GetOrdinal("IsEnabled")).Equals("A");
mStatus = rdr.GetString(rdr.GetOrdinal("Status"));
}
示例15: InflateCourseCode
private CourseCode InflateCourseCode(IDataReader reader)
{
return new CourseCode
{
Id = reader.GetInt64(0),
Code = reader.GetString(1)
};
}