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); }
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)); }
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)); }
public static bool RemoveByIORecordId(string ioRecordId) { if (ioRecordId.IsEmpty()) { throw new ArgumentNullException("ioRecordId"); } IParkInterim factory = ParkInterimFactory.GetFactory(); return(factory.RemoveByIORecordId(ioRecordId)); }