• 大小: 0.41M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 设计模式  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace AbstartFactory
{
    class abstartfactory
    {
        static void Main(string[] args)
        {
            User user = new User();
            Department dept = new Department();

            IUser iu = DataAccess.CreateUser();

            iu.Insert(user);
            iu.GetUser(1);

            IDepartment id = DataAccess.CreateDepartment();
            id.Insert(dept);
            id.GetDepartment(1);

            Console.Read();
        }
    }

    class User
    {
        private int _id;
        public int ID
        {
            get { return _id; }
            set {

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

    I.A....         3  2016-04-21 13:44  DesignPattern\.svn\entries

    I.A....         3  2016-04-21 13:44  DesignPattern\.svn\format

    I.A...R      2365  2016-04-21 13:45  DesignPattern\.svn\pristine\17\17305204f53fee34747e8c46b4eefa98b8a4c1f1.svn-base

    I.A...R      1354  2016-04-21 13:45  DesignPattern\.svn\pristine\30\3061bb9f751048df501a4b351de9cb51db757597.svn-base

    I.A...R      1364  2016-04-21 13:45  DesignPattern\.svn\pristine\35\356152b1ab3cb7a6915bbe725b83f6b6f3e30e2c.svn-base

    I.A...R      1352  2016-04-21 13:45  DesignPattern\.svn\pristine\37\3715b5d12931c28ee093f8d480bd77eb20a98b8b.svn-base

    I.A...R      1354  2016-04-21 13:45  DesignPattern\.svn\pristine\43\434dc8844420bae0e08ce7d699997308da44c9c8.svn-base

    I.A...R      1356  2016-04-21 13:45  DesignPattern\.svn\pristine\56\565ef1eb1caeb05ea3f88767cc68fd10dd9675fb.svn-base

    I.A...R      2369  2016-04-21 13:45  DesignPattern\.svn\pristine\6f\6f90ea24599316417512294c7e7013a469ebdd9c.svn-base

    I.A...R      1352  2016-04-21 13:45  DesignPattern\.svn\pristine\86\86251225e5a435190e84a2cedec5542a43560947.svn-base

    I.A...R      2367  2016-04-21 13:45  DesignPattern\.svn\pristine\8b\8b981f14d753d047d581d99e8e0bc3af3be23d98.svn-base

    I.A...R      2369  2016-04-21 13:45  DesignPattern\.svn\pristine\96\9625842074ae27392b6b46cd5ae06fd38a283ca2.svn-base

    I.A...R      2365  2016-04-21 13:45  DesignPattern\.svn\pristine\9a\9a19668ac26d9f2b322b36e82474a02b26732384.svn-base

    I.A...R      2367  2016-04-21 13:45  DesignPattern\.svn\pristine\a3\a3f922309aa7b5b6ca652a8ca42ac392d5e2a2d7.svn-base

    I.A...R      1352  2016-04-21 13:45  DesignPattern\.svn\pristine\aa\aa6a1f7b77188b8d3bf22daa51c7bcc37d76bc50.svn-base

    I.A...R      5326  2016-04-21 13:45  DesignPattern\.svn\pristine\ac\acd23a793272b9f4b71a9848d519304530cc4647.svn-base

    I.A...R      1348  2016-04-21 13:45  DesignPattern\.svn\pristine\c2\c287b1d8d76d800f47f6abfe1f7ce4009b5808d0.svn-base

    I.A...R      2377  2016-04-21 13:45  DesignPattern\.svn\pristine\e3\e36d0fe03618d989bf9aee11cf29f1b6e6e1280b.svn-base

    I.A...R      2369  2016-04-21 13:45  DesignPattern\.svn\pristine\e3\e3fd1beb955a6b8ce29314b65a990c7d92cf2fda.svn-base

    I.A...R      1356  2016-04-21 13:45  DesignPattern\.svn\pristine\e5\e5099866d8273af786a7c060e6318b20afc5ff2b.svn-base

    I.A...R      2361  2016-04-21 13:45  DesignPattern\.svn\pristine\e7\e75035723b744dc3d519722822a85953d45db30f.svn-base

    I.A...R      2365  2016-04-21 13:45  DesignPattern\.svn\pristine\ea\ea800fd070786ad2fb497f63c7c9fb2bbe245887.svn-base

    I.A...R      1356  2016-04-21 13:45  DesignPattern\.svn\pristine\f2\f214d79c75cd581c1ff25e95046b228864ce232c.svn-base

    I.A....     77824  2016-05-19 15:25  DesignPattern\.svn\wc.db

    I.A....         0  2016-05-19 15:25  DesignPattern\.svn\wc.db-journal

     文件       3777  2016-05-17 10:30  DesignPattern\AbstartFactory\abstartfactory.cs

     文件       2424  2016-05-17 13:48  DesignPattern\AbstartFactory\AbstartFactory.csproj

     文件       4284  2016-05-17 11:20  DesignPattern\AbstartFactory\AbstartFactoty.cs

     文件       5632  2016-05-17 12:28  DesignPattern\AbstartFactory\bin\Debug\AbstartFactory.dll

     文件      19968  2016-05-17 12:28  DesignPattern\AbstartFactory\bin\Debug\AbstartFactory.pdb

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

评论

共有 条评论