Exemplo n.º 1
0
        public ServicingCodeBuilder Take(Func <ServicingCode, bool> expression)
        {
            using (var context = new BaseDataContext())
            {
                var servicingCode = context.ServicingCodes.FirstOrDefault(expression);

                if (servicingCode == null)
                {
                    throw new ArgumentNullException("servicingCode", "Servicing code is not found!");
                }

                entity = servicingCode;
            }

            return(this);
        }
Exemplo n.º 2
0
 public ServicingCodeBuilder New()
 {
     entity = new ServicingCode();
     return(this);
 }