Exemple #1
0
        private void buildDA(int objectTypeId)
        {
            ObjectTypeDA     objectTypeDA = new ObjectTypeDA();
            ObjectTypeEntity entity       = objectTypeDA.get(objectTypeId);

            string name = entity.Tables[entity.FilledTableName].Rows[0][ObjectTypeEntity.FIELD_OBJECT_TYPE_NAME].ToString();

            _abstractDA = (AbstractDAL)ClassFactory.createDAL(name);
        }
Exemple #2
0
 private void buildDA(String objectTypeName)
 {
     _abstractDA = (AbstractDAL)ClassFactory.createDAL(objectTypeName);
 }