zoukankan      html  css  js  c++  java
  • 连接打卡

    namespace Clock.IDAL
    {
    using Clock.Model;


    public interface IUsersClock
    {
    /// <summary>
    /// 获得所有打卡记录
    /// </summary>
    /// <returns></returns>
    List<UsersClock> GetUsersClocks();

    }
    }

    namespace Clock.Factory
    {
    using System.Configuration;
    using System.Reflection;
    public class DALFactory
    {
    private static readonly string AssemblyName = ConfigurationManager.AppSettings["ClockDAL"];
    /// <summary>
    /// 实例化DAL
    /// </summary>
    /// <param name="typeName">DAL类型名</param>
    /// <returns></returns>
    public static T CreateDAL<T>(string typeName)
    {
    return (T)Assembly.Load(AssemblyName).CreateInstance(AssemblyName + typeName);
    }
    }
    }

    namespace Clock.BLL
    {
    using Clock.DAL;
    using Clock.Model;
    using Clock.Factory;
    using Clock.IDAL;
    using System.Data.SqlClient;

    public class UsersClockBLL
    {
    IUsersClock clockDAL = null;
    public UsersClockBLL()
    {
    clockDAL = DALFactory.CreateDAL<UsersClockDAL>(".UsersClockDAL");
    }
    /// <summary>
    /// 获得所有打卡记录
    /// </summary>
    /// <returns></returns>
    public List<UsersClock> GetUsersClocks()
    {
    return clockDAL.GetUsersClocks();
    }
    }
    }

  • 相关阅读:
    无法与服务器建立安全链接
    OpenGL基础探究
    百度语音识别接入遇到的问题
    语音音频相关
    Gif动态图UIImage
    替换图像的某种色值
    错误
    各种须知分类等
    动画支持的一些keypath
    X pgAdmin4 重置布局 页面关不掉,要疯掉了
  • 原文地址:https://www.cnblogs.com/Tbwe/p/10001888.html
Copyright © 2011-2022 走看看