• 大小: 1.38M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  winform  3层结构  

资源简介

本案例用的是C#操作XML文件信息,分为3层写的(UI BLL DAL)层,还有一个Model层。

代码片段和文件信息

using Operationxml.DAL;
using Operationxml.Model;
using System.Collections.Generic;
using System.Data;
namespace Operationxml.BLL
{
    public class BookBll
    {
        BookModel _person= new BookModel();
        BookDal _a = new BookDal();

        public DataSet Personload()
        {
            DataSet ds = _a.LoadBookInfo();
            return ds;

        }          //加载

        public void Creat(BookModel  n)
        {
            _a.CreatBookInfo(n);
        }   //创建

        public void Add(BookModel m)
        {

            _a.AddBookInfo(m);

        }      //添加

        public void Delete(string  _bookmodel)
        {
           
            _a.DeleteBookInfo(_bookmodel);
        }   //删除

        public void Update(BookModel d)
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    133120  2017-04-17 14:53  Operationxml.UI\.vs\Operationxml.UI\v14\.suo

    ..A..H.    130048  2017-04-13 18:10  Operationxml.UI\.vs\Operationxml.UI\v15\.suo

     文件     876544  2017-04-13 18:10  Operationxml.UI\.vs\slnx.sqlite

     文件        154  2017-04-13 18:10  Operationxml.UI\.vs\VSWorkspaceState.json

     文件       5120  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.BLL.dll

     文件      13824  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.BLL.pdb

     文件       8192  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.DAL.dll

     文件      17920  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.DAL.pdb

     文件       5120  2017-04-17 11:09  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.Model.dll

     文件      13824  2017-04-17 11:09  Operationxml.UI\Operationxml.BLL\bin\Debug\Operationxml.Model.pdb

     文件       1129  2017-04-10 16:28  Operationxml.UI\Operationxml.BLL\BookBll.cs

     文件         42  2017-04-11 18:07  Operationxml.UI\Operationxml.BLL\obj\Debug\CoreCompileInputs.cache

     文件       7007  2017-04-17 11:08  Operationxml.UI\Operationxml.BLL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1919  2017-04-11 18:08  Operationxml.UI\Operationxml.BLL\obj\Debug\Operationxml.BLL.csproj.FileListAbsolute.txt

     文件      16690  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\obj\Debug\Operationxml.BLL.csprojResolveAssemblyReference.cache

     文件       5120  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\obj\Debug\Operationxml.BLL.dll

     文件      13824  2017-04-17 11:18  Operationxml.UI\Operationxml.BLL\obj\Debug\Operationxml.BLL.pdb

     文件          0  2017-04-05 15:33  Operationxml.UI\Operationxml.BLL\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2017-04-05 15:33  Operationxml.UI\Operationxml.BLL\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2017-04-05 15:33  Operationxml.UI\Operationxml.BLL\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件         42  2017-04-12 10:40  Operationxml.UI\Operationxml.BLL\obj\Release\CoreCompileInputs.cache

     文件       2916  2017-04-10 15:14  Operationxml.UI\Operationxml.BLL\Operationxml.BLL.csproj

     文件       1340  2017-04-05 15:33  Operationxml.UI\Operationxml.BLL\Properties\AssemblyInfo.cs

     文件       8192  2017-04-17 11:18  Operationxml.UI\Operationxml.DAL\bin\Debug\Operationxml.DAL.dll

     文件      17920  2017-04-17 11:18  Operationxml.UI\Operationxml.DAL\bin\Debug\Operationxml.DAL.pdb

     文件       5120  2017-04-17 11:09  Operationxml.UI\Operationxml.DAL\bin\Debug\Operationxml.Model.dll

     文件      13824  2017-04-17 11:09  Operationxml.UI\Operationxml.DAL\bin\Debug\Operationxml.Model.pdb

     文件       7073  2017-04-17 11:18  Operationxml.UI\Operationxml.DAL\BookDal.cs

     文件         42  2017-04-11 18:07  Operationxml.UI\Operationxml.DAL\obj\Debug\CoreCompileInputs.cache

     文件       7006  2017-04-17 11:08  Operationxml.UI\Operationxml.DAL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

............此处省略125个文件信息

评论

共有 条评论