Пример #1
0
        public LicenceTypeMinimum FindLicenceTypeMinimumByName(int licenceTypeMinimumName)
        {
            //LicenceTypeMinimum f1 = _context.LicenceTypeMinimums.Where(x => x.LicenceTypeMinimumName.ToUpper().StartsWith(licenceTypeMinimumName.ToUpper())).FirstOrDefault();
            //LicenceTypeMinimum f2 = (from cf in _context.LicenceTypeMinimums
            //              where cf.LicenceTypeMinimumName.ToUpper().StartsWith(licenceTypeMinimumName.ToUpper())
            //              select cf).FirstOrDefault();

            LicenceTypeMinimum f1 = _context.LicenceTypeMinimums.Where(x => x.LicenceTypeMinimumName == licenceTypeMinimumName).FirstOrDefault();
            LicenceTypeMinimum f2 = (from cf in _context.LicenceTypeMinimums
                                     where cf.LicenceTypeMinimumName == licenceTypeMinimumName
                                     select cf).FirstOrDefault();

            return(f2);
        }
Пример #2
0
 public void AddLicenceTypeMinimum(LicenceTypeMinimum ltm)
 {
     _context.LicenceTypeMinimums.Add(ltm);
 }