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