• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IDbStatement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Equals

 public bool Equals(IDbStatement other)
 {
     return other is DbStatement && StmtPtr == ((DbStatement) other).StmtPtr;
 }
开发者ID:kevingy,项目名称:SQLite.Net-PCL,代码行数:4,代码来源:SQLiteApiWin32.cs


示例17: ColumnType

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


示例18: Reset

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


示例19: BindDouble

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


示例20: Finalize

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IDbTransaction类代码示例发布时间:2022-05-24
下一篇:
C# IDbSet类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap