示例#1
0
        /// <summary>
        ///     返回一个单例EntityControl
        /// </summary>
        /// <returns></returns>
        public static EntityControl CreateEntityControl()
        {
            if (_entity != null)
            {
                return(_entity);
            }

            lock (Padlock)
            {
                if (_entity == null)
                {
                    _entity = new EntityControl();
                }
            }

            return(_entity);
        }
示例#2
0
 public SystemData()
 {
     _control = EntityControl.CreateEntityControl();
 }