• 大小: 16.17M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: MVC  c  

资源简介


资源截图

代码片段和文件信息

using Ivony.Data.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Ivony.Data
{

  /// 
  /// 提供基本的查询方法扩展
  /// 

  public static class BasicExecuteExtensions
  {

    /// 
    /// 执行查询并将第一个结果集包装成 DataTable 返回
    /// 

    /// 要执行的查询对象
    /// 查询结果
    public static DataTable ExecuteDataTable( this IDbExecutableQuery query )
    {
      using ( var context = query.Execute() )
      {
        return context.LoadDataTable( 0 0 );
      }
    }

#if !NET40
    /// 
    /// 异步执行查询并将第一个结果集包装成 DataTable 返回
    /// 

    /// 要执行的查询对象
    /// 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-18 17:06  DbUtility-develop\
     文件        1476  2017-05-18 17:06  DbUtility-develop\.gitignore
     文件       10751  2017-05-18 17:06  DbUtility-develop\LICENSE.txt
     文件        2867  2017-05-18 17:06  DbUtility-develop\README.md
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\
     文件        3960  2017-05-18 17:06  DbUtility-develop\Sources\DbUtility.sln
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\
     文件        2454  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\DbTraceService.cs
     文件        2819  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\Ivony.Data.Logs.csproj
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\Properties\
     文件        1318  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\Properties\AssemblyInfo.cs
     文件         132  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.Logs\packages.config
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\
     文件        3175  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\Ivony.Data.MySql.csproj
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\
     文件         288  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\MySqlDbConfiguration.cs
     文件        2402  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\MySqlDbExecutor.cs
     文件        2421  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\MySqlDbTransactionContext.cs
     文件        1692  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\MySqlExecuteContext.cs
     文件         818  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlClient\MySqlParameterizedQueryParser.cs
     文件        6529  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\MySqlDb.cs
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\Properties\
     文件        1246  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\Properties\AssemblyInfo.cs
     文件         134  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.MySql\packages.config
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\
     文件        3596  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\Ivony.Data.PostgreSQL.csproj
     文件        5526  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\PostgreSql.cs
     目录           0  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\PostgreSqlClient\
     文件         214  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\PostgreSqlClient\NpgsqlDbConfiguration.cs
     文件        9681  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\PostgreSqlClient\NpgsqlDbExecutor.cs
     文件        5043  2017-05-18 17:06  DbUtility-develop\Sources\Ivony.Data.PostgreSQL\PostgreSqlClient\NpgsqlDbTransactionContext.cs
............此处省略245个文件信息

评论

共有 条评论