db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Problems with storing enums in a network database.

Last post 07-16-2008, 04:23 PM by Danat. 1 replies.
Sort Posts: Previous Next
  •  07-14-2008, 01:30 PM 50118

    Problems with storing enums in a network database.


    Hi Db4o,

    I have problems with enums in a network database, c# environment, version Continues Build july 9th, 2008.

        public enum GroupEnum { First, Second, Third }
        public class Student2
        {
            public GroupEnum Group;
            public string Name;
        }

        [Test]
        public void Test2()
        {
            IObjectContainer _client = Db4oFactory.OpenClient("mjb-pc2", 8732, "user1", "password");
            Student2 student = new Student2();
            student.Name = "Student2";
            student.Group = GroupEnum.First;

            _client.Store(student);     // Hangs in this call !!!!!!!!!!!!!!!!!!
            _client.Commit();
            _client.Close();
        }

    The _client.Store(student) call in Test2 never returns and the database file keeps growing.
    Changing the 'public GroupEnum Group' to a property and a backing field, doesn't help.

    What is going on here?

    Thanks
    Martin

    Filed under: , , ,
  •  07-16-2008, 04:23 PM 50166 in reply to 50118

    Re: Problems with storing enums in a network database.

    http://developers.db4o.com/forums/thread/49738.aspx
View as RSS news feed in XML