當前位置: 首頁>>代碼示例>>C#>>正文


C# Sqlite.SqliteDataReader類代碼示例

本文整理匯總了C#中Mono.Data.Sqlite.SqliteDataReader的典型用法代碼示例。如果您正苦於以下問題:C# SqliteDataReader類的具體用法?C# SqliteDataReader怎麽用?C# SqliteDataReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SqliteDataReader類屬於Mono.Data.Sqlite命名空間,在下文中一共展示了SqliteDataReader類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的Mono.Data.Sqlite.SqliteDataReader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。