示例#1
0
 public static IParkInterim GetFactory()
 {
     if (factory == null)
     {
         Type type = Type.GetType("Common." + SystemDefaultConfig.DatabaseProvider + "Repository.ParkInterimDAL,Common." + SystemDefaultConfig.DatabaseProvider + "Repository", true);
         factory = (IParkInterim)Activator.CreateInstance(type);
     }
     return(factory);
 }
示例#2
0
        public static ParkInterim AddInterim(ParkInterim mode, out string ErrorMessage)
        {
            if (mode == null)
            {
                throw new ArgumentNullException("mode");
            }

            IParkInterim factory = ParkInterimFactory.GetFactory();

            return(factory.AddInterim(mode, out ErrorMessage));
        }
示例#3
0
        public static List <ParkInterim> GetInterimByIOrecord(string recordID, out string ErrorMessage)
        {
            if (recordID.IsEmpty())
            {
                throw new ArgumentNullException("recordID");
            }

            IParkInterim factory = ParkInterimFactory.GetFactory();

            return(factory.GetInterimByIOrecord(recordID, out ErrorMessage));
        }
示例#4
0
        public static bool RemoveByIORecordId(string ioRecordId)
        {
            if (ioRecordId.IsEmpty())
            {
                throw new ArgumentNullException("ioRecordId");
            }

            IParkInterim factory = ParkInterimFactory.GetFactory();

            return(factory.RemoveByIORecordId(ioRecordId));
        }