protected static void Establish_context()
        {
            refData = new ReferenceData() { Key = "LocationType", Value = Guid.NewGuid().ToString() };
            var repository = new DbSetRepository<MDM.ReferenceData>(new MappingContext());

            foreach (var rd in repository.Queryable())
            {
                repository.Delete(rd);
            }

            repository.Add(refData);
            repository.Flush();

            client = new HttpClient();
        }
Пример #2
0
        protected static void Establish_context()
        {
            refData = new ReferenceData()
            {
                Key = "LocationType", Value = Guid.NewGuid().ToString()
            };
            var repository = new DbSetRepository <MDM.ReferenceData>(new MappingContext());

            foreach (var rd in repository.Queryable())
            {
                repository.Delete(rd);
            }

            repository.Add(refData);
            repository.Flush();

            client = new HttpClient();
        }