Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DB4o - Can't delete object stored in global variable

 
   Database Forums (Home) -> Object-Oriented RSS
Next:  Restore access for sql service accounts  
Author Message
Bryan

External


Since: Jan 12, 2006
Posts: 1



(Msg. 1) Posted: Fri Apr 07, 2006 4:35 pm
Post subject: DB4o - Can't delete object stored in global variable
Archived from groups: comp>databases>object (more info?)

I have a class Human. A form lists all humans. When the user double
clicks on a human, I open another form showing the details of that
human.
There is a global variable on the detail form called CurrentHuman of
type human. When the user double clicks a human in the list on the
first form, I do a search to find the object and set the global
variable 'CurrentHuman' = to this object.
Now when I am in the detail form I have a button that deletes the
object 'CurrentHuman' but it is not working. Here is some of my code:

This finds the object that the user double cliked on by searching for
the unique ID property (EntityID is the ID value of the human that was
double clicked). The object found here is sent to the 'CurrentHuman'
global variable on the detail form
Dim results As ObjectSet = db.Get(GetType(Human))
For Each h As Human In results
If h.ID = EntityID Then
Return h
Exit Function
End If
Next

Here is what I have to delete the human object
db.Delete(CurrentHuman)

This is not working however, what could be going wrong?

 >> Stay informed about: DB4o - Can't delete object stored in global variable 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problems with sorting datas with db4o using orderderAscend.. - Hi, I have created a class "result" with several attributes. Then I have inserted approximately 10000 object result, stored in a yap file. I can get the data and display them. I'd like to know if it is possible, using the functions of db4o, t...

Thinking of going with object db - Hi Folks, Im about to start a new ASP.NET based intranet system that will be used by intially 100 people but in years to come could be 10x that. Ill have a domain model layer and like the idea of not having to write OR mapping layer or paying for a..

Enterprise Data Object - This e-book contains over 1,100 pages of information that establish a new paradigm for the integrated Enterprise Data Architecture. It is a practical reference for the information technology professional. Organized hierarchically and amplified by more..

developing a Object Oriented Database -

Help with constraints on object relational tables - Hi I hope I am posting in the correct places. I am looking for some help that is hopefully explained in the example below: I am looking to create an object relational database with a check constraint on the relationships. For example: * I have tabl...
   Database Forums (Home) -> Object-Oriented All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]