91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.02MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2022-03-10
  • 語言: C#
  • 標簽: C#??SQLite??數據庫??

資源簡介

本例子使用C#語言實現操作SQLite數據庫,完成基本的增、刪、改、查,不是復雜的功能,具體介紹可以看:https://www.cnblogs.com/JiYF/p/11260178.html 看這里,代碼已經給出,看懂的人,就沒必要下載了。木有積分給出郵箱,或者博客留言,我看到后給你發

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Data;
using?System.Linq;
using?System.Text;

namespace?BLL
{
????public?partial?class?UserInfo
????{
????????private?readonly?DAL.UserInfo?dal?=?new?DAL.UserInfo();
????????public?UserInfo()
????????{?}
????????#region??BasicMethod

????????///?
????????///?得到最大ID
????????///?

????????public?int?GetMaxId()
????????{
????????????return?dal.GetMaxId();
????????}

????????///?
????????///?是否存在該記錄
????????///?

????????public?bool?Exists(int?ID)
????????{
????????????return?dal.Exists(ID);
????????}

????????///?
????????///?增加一條數據
????????///?

????????public?bool?Add(Model.UserInfo?model)
????????{
????????????return?dal.Add(model);
????????}

????????///?
????????///?更新一條數據
????????///?

????????public?bool?Update(Model.UserInfo?model)
????????{
????????????return?dal.Update(model);
????????}

????????///?
????????///?刪除一條數據
????????///?

????????public?bool?Delete(int?ID)
????????{

????????????return?dal.Delete(ID);
????????}
????????///?
????????///?刪除一條數據
????????///?

????????public?bool?DeleteList(string?IDlist)
????????{
????????????return?dal.DeleteList(IDlist);
????????}

????????///?
????????///?得到一個對象實體
????????///?

????????public?Model.UserInfo?GetModel(int?ID)
????????{

????????????return?dal.GetModel(ID);
????????}

????????/////?
????????/////?得到一個對象實體,從緩存中
????????/////?

????????//public?Model.UserInfo?GetModelByCache(int?ID)
????????//{

????????//????string?CacheKey?=?“UserInfoModel-“?+?ID;
????????//????object?objModel?=?Common.DataCache.GetCache(CacheKey);
????????//????if?(objModel?==?null)
????????//????{
????????//????????try
????????//????????{
????????//????????????objModel?=?dal.GetModel(ID);
????????//????????????if?(objModel?!=?null)
????????//????????????{
????????//????????????????int?ModelCache?=?Maticsoft.Common.ConfigHelper.GetConfigInt(“ModelCache“);
????????//????????????????Maticsoft.Common.DataCache.SetCache(CacheKey?objModel?DateTime.Now.AddMinutes(ModelCache)?TimeSpan.Zero);
????????//????????????}
????????//????????}
????????//????????catch?{?}
????????//????}
????????//????return?(Maticsoft.Model.UserInfo)objModel;
????????//}

????????///?
????????///?獲得數據列表
????????///?

????????public?DataSet?GetList(string?strWhere)
????????{
????????????return?dal.GetList(strWhere);
????????}
????????///?
????????///?獲得數據列表
????????///?

????????public?List?GetModelList(string?strWhere)
????????{
????????????DataSet?ds?=?dal.GetList(strWhere);
????????????return?DataTableToList(ds.Tables[0]);
????????}
????????///?
????????///?獲得數據列表
????????///?

????????public?List?DataTableToList(DataTable?dt)
????????{
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????180224??2019-06-09?00:50??Lib\SQLite.Designer.dll

?????文件??????30551??2019-06-09?00:50??Lib\SQLite.Designer.xml

?????文件????1113088??2019-06-09?00:45??Lib\SQLite.Interop.dll

?????文件?????360448??2019-06-09?00:50??Lib\System.Data.SQLite.dll

?????文件??????12492??2019-05-15?08:31??Lib\System.Data.SQLite.dll.config

?????文件?????186880??2019-06-09?00:50??Lib\System.Data.SQLite.EF6.dll

?????文件?????124078??2019-06-09?00:50??Lib\System.Data.SQLite.EF6.xml

?????文件?????186880??2019-06-09?00:50??Lib\System.Data.SQLite.Linq.dll

?????文件?????121826??2019-06-09?00:50??Lib\System.Data.SQLite.Linq.xml

?????文件????1089145??2019-06-09?00:50??Lib\System.Data.SQLite.xml

?????文件???????4608??2019-07-27?23:50??Model\bin\Debug\Model.dll

?????文件??????17920??2019-07-27?23:50??Model\bin\Debug\Model.pdb

?????文件???????2146??2019-07-27?23:50??Model\Model.csproj

?????文件???????6459??2019-07-27?23:39??Model\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件?????????42??2019-07-27?23:39??Model\obj\Debug\Model.csproj.CoreCompileInputs.cache

?????文件????????455??2019-07-27?23:50??Model\obj\Debug\Model.csproj.FileListAbsolute.txt

?????文件???????7574??2019-07-28?12:55??Model\obj\Debug\Model.csprojAssemblyReference.cache

?????文件???????4608??2019-07-27?23:50??Model\obj\Debug\Model.dll

?????文件??????17920??2019-07-27?23:50??Model\obj\Debug\Model.pdb

?????文件???????1317??2019-07-27?23:39??Model\Properties\AssemblyInfo.cs

?????文件???????1243??2019-07-27?23:40??Model\UserInfo.cs

?????文件????????814??2019-07-28?16:30??SQLiteDBTest\App.config

?????文件???????5632??2019-07-28?17:24??SQLiteDBTest\bin\Debug\BLL.dll

?????文件??????19968??2019-07-28?17:24??SQLiteDBTest\bin\Debug\BLL.pdb

?????文件???????8192??2019-07-28?17:24??SQLiteDBTest\bin\Debug\DAL.dll

?????文件??????22016??2019-07-28?17:24??SQLiteDBTest\bin\Debug\DAL.pdb

?????文件???????9216??2019-07-28?17:24??SQLiteDBTest\bin\Debug\DBUtility.dll

?????文件??????28160??2019-07-28?17:24??SQLiteDBTest\bin\Debug\DBUtility.pdb

?????文件???????4608??2019-07-27?23:50??SQLiteDBTest\bin\Debug\Model.dll

?????文件??????17920??2019-07-27?23:50??SQLiteDBTest\bin\Debug\Model.pdb

............此處省略134個文件信息

評論

共有 條評論