Пример #1
0
        /// <summary>
        /// Empty data context is used when the from is loaded without ID (the from is in "insert mode")
        /// </summary>
        public ShippersDataContext GetEmptyDataContext(out string error)
        {
            ShippersDataContext dataContext = new ShippersDataContext();

            error = null;
            dataContext.modelNotifiedForShippersMain = new ModelNotifiedForShippers();;
            return(dataContext);
        }
Пример #2
0
        public ShippersDataContext GetDataContext(int ShipperID, out string error)
        {
            ShippersDataContext dataContext = new ShippersDataContext();

            error = null;
            dataContext.modelNotifiedForShippersMain = GetShippersByID(ShipperID, out error);


            return(dataContext);
        }