本文整理汇总了C#中Mono.Data.Sqlite.SqliteDataReader类的典型用法代码示例。如果您正苦于以下问题:C# SqliteDataReader类的具体用法?C# SqliteDataReader怎么用?C# SqliteDataReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SqliteDataReader类属于Mono.Data.Sqlite命名空间,在下文中一共展示了SqliteDataReader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ExecuteQuery
static public SqliteDataReader ExecuteQuery(string sqlQuery)
{
dbCommand = OpenDB("monsters.db").CreateCommand();
dbCommand.CommandText = sqlQuery;
reader = dbCommand.ExecuteReader();
return reader;
}
开发者ID:shuitian,项目名称:pokemon_rpg,代码行数:7,代码来源:Sql.cs
示例2: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
Motion = System.Convert.ToString(sdr ["Motion"]);
MotionTransition= System.Convert.ToSingle(sdr ["MotionTransition"]);
MotionSpeed = System.Convert.ToSingle(sdr ["MotionSpeed"]);
}
开发者ID:oathx,项目名称:Six,代码行数:12,代码来源:SqlAction.cs
示例3: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
ShapeID = System.Convert.ToInt32(sdr ["ShapeID"]);
Weapon = System.Convert.ToString(sdr ["Weapon"]);
Describe = System.Convert.ToString(sdr ["Describe"]);
}
开发者ID:oathx,项目名称:Six,代码行数:12,代码来源:SqlJob.cs
示例4: ExecuteQuery
public SqliteDataReader ExecuteQuery(string q)
{
databaseCommand = databaseConnection.CreateCommand();
databaseCommand.CommandText = q;
reader = databaseCommand.ExecuteReader();
return reader;
}
开发者ID:automaticoo,项目名称:UnityEditorProject,代码行数:8,代码来源:DatabaseAcces.cs
示例5: FromReader
/// <summary>Convert from DataReader to Task object</summary>
TodoItem FromReader (SqliteDataReader r) {
var t = new TodoItem();
t.ID = Convert.ToInt32 (r ["_id"]);
t.Name = r ["Name"].ToString ();
t.Notes = r ["Notes"].ToString ();
t.Done = Convert.ToInt32 (r ["Done"]) == 1 ? true : false;
return t;
}
开发者ID:King-of-Spades,项目名称:xamarin-samples,代码行数:9,代码来源:ADODatabase_Implementation.cs
示例6: DBFill
/// <summary>
/// DBFill
/// </summary>
/// <param name="reader"></param>
/// <param name="slide"></param>
public static void DBFill(SqliteDataReader reader, Slide slide)
{
slide.SlideID = Convert.ToInt32(reader["slide_id"]);
slide.SlideText = HttpUtility.UrlDecode(reader["slide_text"].ToString(), System.Text.Encoding.Default);
slide.SlideIndex = Convert.ToInt32(reader["slide_index"]);
slide.PhotoID = Convert.ToInt32(reader["photo_id"]);
slide.Photo = Photo.Get(slide.PhotoID);
}
开发者ID:jfbomber,项目名称:kk,代码行数:13,代码来源:Slide.cs
示例7: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
ShapeID = System.Convert.ToInt32(sdr ["Shape"]);
Level = System.Convert.ToInt32(sdr ["Level"]);
Blueprint = System.Convert.ToString(sdr ["AI"]);
}
开发者ID:oathx,项目名称:Six,代码行数:12,代码来源:SqlMonster.cs
示例8: CreateMatchingTable
MatchingTable CreateMatchingTable(SqliteDataReader reader)
{
return new MatchingTable(
reader["id"].ToString(),
reader["host"].ToString(),
reader["guest"].ToString()
);
}
开发者ID:yuemori,项目名称:csharp_webserver,代码行数:8,代码来源:matching.cs
示例9: FromReader
/// <summary>Convert from DataReader to Task object</summary>
private TodoItem FromReader (SqliteDataReader r) {
var t = new TodoItem {
ID = Convert.ToInt32 (r["_id"]),
Name = r["Name"].ToString (),
Notes = r["Notes"].ToString (),
Done = (Convert.ToInt32 (r["Done"]) == 1)
};
return t;
}
开发者ID:JohnPaine,项目名称:learning,代码行数:10,代码来源:TodoDatabaseADO.cs
示例10: BlockData
public BlockData(SqliteDataReader reader)
{
ID = reader.GetInt32(0);
File = reader.GetString(1);
Width = reader.GetInt32(2);
Height = reader.GetInt32(3);
AvailableWidth = reader.GetInt32(4);
AvailableHeight = reader.GetInt32(5);
}
开发者ID:automaticoo,项目名称:UnityEditorProject,代码行数:9,代码来源:Block.cs
示例11: HyenaSqliteArrayDataReader
internal HyenaSqliteArrayDataReader (SqliteDataReader reader)
{
rows = new List<object[]> ();
column_names = new Dictionary<string, int> ();
closed = false;
current_row = -1;
ReadAllRows (reader);
reader.Dispose ();
}
开发者ID:rubenv,项目名称:tripod,代码行数:9,代码来源:HyenaSqliteArrayDataReader.cs
示例12: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
ShapeID = System.Convert.ToInt32(sdr ["ShapeID"]);
State = System.Convert.ToInt32(sdr ["State"]);
Blueprint = System.Convert.ToString(sdr ["AI"]);
Describe = System.Convert.ToString(sdr ["Describe"]);
}
开发者ID:oathx,项目名称:Six,代码行数:13,代码来源:SqlJob.cs
示例13: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
AnimationID = System.Convert.ToInt32(sdr ["AnimationID"]);
DecodeEffect(
System.Convert.ToString(sdr ["Effect"])
);
}
开发者ID:oathx,项目名称:Six,代码行数:14,代码来源:SqlAction.cs
示例14: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
SelfBuffID = System.Convert.ToInt32(sdr ["SelfBuffID"]);
TargetBuffID = System.Convert.ToInt32(sdr ["TargetBuffID"]);
SelfActionID = System.Convert.ToInt32(sdr ["SelfActionID"]);
TargetActionID = System.Convert.ToInt32(sdr ["TargetActionID"]);
AttackDistance = System.Convert.ToSingle(sdr ["AttackDistance"]);
}
开发者ID:oathx,项目名称:Six,代码行数:14,代码来源:SqlMagic.cs
示例15: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["id"]);
OffsetPosition = MathfEx.ToVector3(System.Convert.ToString(sdr ["lockPosition"]));
OffsetPositionLerp = System.Convert.ToSingle(sdr ["lockPositionLerp"]);
OffsetEulerAngles = MathfEx.ToVector3(System.Convert.ToString(sdr ["lockRotation"]));
OffsetEulerAnglesLerp = System.Convert.ToSingle(sdr ["lockRotationLerp"]);
FieldOfView = System.Convert.ToSingle(sdr ["fieldOfView"]);
IsRelative = System.Convert.ToInt32 (sdr ["Relative"]) != 0 ? true : false;
}
开发者ID:oathx,项目名称:Six,代码行数:14,代码来源:SqlCamera.cs
示例16: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr["ID"]);
Name = System.Convert.ToString(sdr["Name"]);
Url = System.Convert.ToString(sdr["Url"]);
Type = System.Convert.ToInt32(sdr["Type"]);
Part = System.Convert.ToInt32(sdr["PartType"]);
Icon = System.Convert.ToString(sdr["Icon"]);
ExtendUrl = System.Convert.ToString(sdr["ExtendUrl"]);
}
开发者ID:oathx,项目名称:Six,代码行数:14,代码来源:SqlItem.cs
示例17: ReadTask
private static TaskItem ReadTask(SqliteDataReader reader)
{
TaskItem task = new TaskItem
{
Id = Convert.ToInt32(reader["Id"]),
Name = Convert.ToString(reader["Name"]),
IsComplete = Convert.ToBoolean(reader["IsComplete"]),
};
return task;
}
开发者ID:tohosnet,项目名称:Mono.Data.Sqlite,代码行数:10,代码来源:TaskItemRepository.cs
示例18: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
Version = System.Convert.ToString(sdr ["Version"]);
UserName = System.Convert.ToString(sdr ["UserName"]);
Password = System.Convert.ToString(sdr ["Password"]);
MainScript = System.Convert.ToString(sdr ["MainScript"]);
ServerVersion = System.Convert.ToInt32(sdr ["ServerVersion"]);
ServerID = System.Convert.ToInt32(sdr ["ServerID"]);
IPAddress = System.Convert.ToString(sdr ["IPAddress"]);
Port = System.Convert.ToInt32(sdr ["Port"]);
}
开发者ID:oathx,项目名称:Six,代码行数:15,代码来源:SqlSystem.cs
示例19: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr["ID"]);
Name = System.Convert.ToString(sdr["Name"]);
Url = System.Convert.ToString(sdr["Url"]);
Stream = System.Convert.ToInt32(sdr["Stream"]) != 0;
Script = System.Convert.ToString(sdr["Script"]);
Describe = System.Convert.ToString(sdr["Describe"]);
Type = (SceneType)System.Convert.ToInt32(sdr["Type"]);
Born = MathfEx.ToVector3(System.Convert.ToString(sdr["Born"]));
CameraID = System.Convert.ToInt32(sdr["CameraID"]);
}
开发者ID:oathx,项目名称:Six,代码行数:16,代码来源:SqlScene.cs
示例20: Decode
/// <summary>
/// Decode the specified sdr.
/// </summary>
/// <param name="sdr">Sdr.</param>
public override void Decode (SqliteDataReader sdr)
{
ID = System.Convert.ToInt32(sdr ["ID"]);
Name = System.Convert.ToString(sdr ["Name"]);
Icon = System.Convert.ToString(sdr ["Icon"]);
Level = System.Convert.ToInt32(sdr ["Level"]);
State = System.Convert.ToInt32(sdr ["State"]);
Area = System.Convert.ToInt32(sdr ["Area"]);
Observer = System.Convert.ToString(sdr ["Observer"]);
EnableMenu = System.Convert.ToInt32(sdr ["EnableMenu"]) != 0;
EnableJoystick = System.Convert.ToInt32(sdr ["EnableJoystick"]) != 0;
}
开发者ID:oathx,项目名称:Six,代码行数:16,代码来源:SqlSpread.cs
注:本文中的Mono.Data.Sqlite.SqliteDataReader类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论