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


C# IDbStatement类代码示例

本文整理汇总了C#中IDbStatement的典型用法代码示例。如果您正苦于以下问题:C# IDbStatement类的具体用法?C# IDbStatement怎么用?C# IDbStatement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: ColumnBlob

 public byte[] ColumnBlob(IDbStatement stmt, int index)
 {
     var dbStatement = (DbStatement)stmt;
     int length = ColumnBytes(stmt, index);
     byte[] result = new byte[length];
     if (length > 0)
         Marshal.Copy(SQLite3.ColumnBlob(dbStatement.InternalStmt, index), result, 0, length);
     return result;
 }
开发者ID:happynik,项目名称:SQLite.Net-PCL,代码行数:9,代码来源:SQLiteApiWinRT.cs

示例2: BindInt

        public int BindInt(IDbStatement stmt, int index, int val)
        {
            var dbStatement = (DbStatement)stmt;

            if (_useWinSqlite)
            {
                return WinSQLite3.BindInt(dbStatement.InternalStmt, index, val);
            }
            else
            {
                return SQLite3.BindInt(dbStatement.InternalStmt, index, val);
            }
        }
开发者ID:Reza1024,项目名称:SQLite.Net-PCL,代码行数:13,代码来源:SQLiteApiWinRT.cs

示例3: BindBlob

        public int BindBlob(IDbStatement stmt, int index, byte[] val, int n, IntPtr free)
        {
            var dbStatement = (DbStatement)stmt;

            if (_useWinSqlite)
            {
                return WinSQLite3.BindBlob(dbStatement.InternalStmt, index, val, n, free);
            }
            else
            {
                return SQLite3.BindBlob(dbStatement.InternalStmt, index, val, n, free);
            }
        }
开发者ID:Reza1024,项目名称:SQLite.Net-PCL,代码行数:13,代码来源:SQLiteApiWinRT.cs

示例4: ColumnByteArray

 public byte[] ColumnByteArray(IDbStatement stmt, int index)
 {
     return ColumnBlob(stmt, index);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:4,代码来源:SQLiteApiWinRT.cs

示例5: BindParameterIndex

 public int BindParameterIndex(IDbStatement stmt, string name)
 {
     var dbStatement = (DbStatement)stmt;
     return SQLite3.BindParameterIndex(dbStatement.InternalStmt, name);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs

示例6: BindInt64

 public int BindInt64(IDbStatement stmt, int index, long val)
 {
     var dbStatement = (DbStatement)stmt;
     return SQLite3.BindInt64(dbStatement.InternalStmt, index, val);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs

示例7: Step

 public Result Step(IDbStatement stmt)
 {
     var dbStatement = (DbStatement)stmt;
     return (Result)SQLite3.Step(dbStatement.InternalStmt);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs

示例8: Finalize

 public Result Finalize(IDbStatement stmt)
 {
     var dbStatement = (DbStatement)stmt;
     Sqlite3Statement internalStmt = dbStatement.InternalStmt;
     return (Result)SQLite3.Finalize(internalStmt);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:6,代码来源:SQLiteApiWinRT.cs

示例9: ColumnText16

 public string ColumnText16(IDbStatement stmt, int index)
 {
     var dbStatement = (DbStatement)stmt;
     return Marshal.PtrToStringUni(SQLite3.ColumnText16(dbStatement.InternalStmt, index));
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs

示例10: ColumnByteArray

 public byte[] ColumnByteArray(IDbStatement stmt, int index)
 {
     var internalStmt = (DbStatement) stmt;
     return SQLiteApiWin32Internal.ColumnByteArray(internalStmt.StmtPtr, index);
 }
开发者ID:kevingy,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWin32.cs

示例11: ColumnBytes

 public int ColumnBytes(IDbStatement stmt, int index)
 {
     var internalStmt = (DbStatement) stmt;
     return SQLiteApiWin32Internal.sqlite3_column_bytes(internalStmt.StmtPtr, index);
 }
开发者ID:kevingy,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWin32.cs

示例12: ColumnText16

 public string ColumnText16(IDbStatement stmt, int index)
 {
     var internalStmt = (DbStatement) stmt;
     return Marshal.PtrToStringUni(SQLiteApiWin32Internal.sqlite3_column_text16(internalStmt.StmtPtr, index));
 }
开发者ID:kevingy,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWin32.cs

示例13: ColumnDouble

 public double ColumnDouble(IDbStatement stmt, int index)
 {
     var internalStmt = (DbStatement) stmt;
     return SQLiteApiWin32Internal.sqlite3_column_double(internalStmt.StmtPtr, index);
 }
开发者ID:kevingy,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWin32.cs

示例14: ColumnInt64

 public long ColumnInt64(IDbStatement stmt, int index)
 {
     var dbStatement = (DbStatement)stmt;
     return SQLite3.ColumnInt64(dbStatement.InternalStmt, index);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs

示例15: ColumnName16

 public string ColumnName16(IDbStatement stmt, int index)
 {
     var dbStatement = (DbStatement)stmt;
     return SQLite3.ColumnName16(dbStatement.InternalStmt, index);
 }
开发者ID:kwchenjs,项目名称:SQLite.Net-PCL,代码行数:5,代码来源:SQLiteApiWinRT.cs


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