public void Setup()
        {
            ActiveRecordStarter.Initialize(GetConfigSource(),
                                           typeof(Blog),
                                           typeof(Post),
                                           typeof(Company),
                                           typeof(Award),
                                           typeof(Employee),
                                           typeof(Person));
            Recreate();

            ActiveRecordMediator <Post> .DeleteAll();

            ActiveRecordMediator <Blog> .DeleteAll();

            ActiveRecordMediator <Company> .DeleteAll();

            ActiveRecordMediator <Award> .DeleteAll();

            ActiveRecordMediator <Employee> .DeleteAll();
        }
Пример #2
0
 public static void DeleteAll()
 {
     ActiveRecordMediator.DeleteAll(typeof(OtherDbBlog));
 }
Пример #3
0
 public static void DeleteAll(string where)
 {
     ActiveRecordMediator.DeleteAll(typeof(Blog), where);
 }
 public void DeleteAll()
 {
     ActiveRecordMediator <T> .DeleteAll();
 }
Пример #5
0
 public static void DeleteAll()
 {
     ActiveRecordMediator.DeleteAll(typeof(Group));
 }
Пример #6
0
 public static void DeleteAll()
 {
     ActiveRecordMediator.DeleteAll(typeof(Widget));
 }
Пример #7
0
 /// <summary>
 /// Registers all entities for deletion when the unit of work
 /// is completed.
 /// </summary>
 public virtual void DeleteAll()
 {
     ActiveRecordMediator.DeleteAll(ConcreteType);
 }
Пример #8
0
 public void DeleteAll(IEnumerable ListaIds)
 {
     ActiveRecordMediator <T> .DeleteAll(typeof(T), ListaIds);
 }
Пример #9
0
 public void DeleteAllWithTaxType(TaxType taxType)
 {
     ActiveRecordMediator <Product> .DeleteAll(string.Format("taxTypeId = {0}", taxType.Id));
 }