/// <summary>
 /// Constructs a new DAOBase object.
 /// </summary>
 /// <param name="domainName">
 /// The name of the domain object. Used by the domain factory when
 /// creating new instances.
 /// </param>
 /// <param name="tableName">
 /// The name of the data base table.
 /// </param>
 /// <param name="mappings">
 /// The domain attribute DB column mappings.
 /// </param>
 public DAOBase(string domainName, 
                string tableName, 
                Dictionary<string,string> mappings)
 {
     log = LogManager.GetLogger(this.GetType().Name);
     this.domainName = domainName;
     this.mappings = mappings;
     insertBuilder = new InsertBuilder(tableName, mappings);
     updateBuilder = new UpdateBuilder(tableName, mappings);
     deleteBuilder = new DeleteBuilder(tableName, mappings);
 }
        public void SetUp()
        {
            DomainFactorySetup();

            Dictionary<string,string> mappings = new Dictionary<string, string>();
            mappings["Id"] = "DOMAIN_ID";
            mappings["StringAttr"] = "STRING_COLUMN";

            cut = new DeleteBuilder("DOMAIN_TABLE", mappings);

            domain = DomainFactory.Create("DeleteDomain", false);
        }