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