The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Moving to Entity Spaces from d00dads BusinessEntity

Last post 06-30-2008, 2:35 PM by David.Parsons. 3 replies.
Sort Posts: Previous Next
  •  01-02-2008, 1:50 PM 7406

    Moving to Entity Spaces from d00dads BusinessEntity

    Even though MyGen 1.3 has gone Open Source I'm considering a move to Entity Spaces. I have a rather large amount of code already in place so how painful can I expect porting from d00dads BusinessEntity to be? I'm nearing the point where I would do a production release with the d00dads implementation so I'm trying to figure out if the benefits of converting the software to Entity Spaces now is worth the potential delay..

     
    Thanks guys! 

  •  01-03-2008, 10:26 AM 7429 in reply to 7406

    Re: Moving to Entity Spaces from d00dads BusinessEntity

    At this point, EntitySpaces is almost 2 years further along than dOOdads. While a much of the API syntax will be familiar, there was no attempt made at backward compatibility. It will definitely be easier to port from dOOdads to EntitySpaces, rather than to some other architecture, but I would not consider it a trivial undertaking. The DynamicQuery API, for example, has been significantly improved, but is quite different.

    I would recommend downloading the free, fully-functional EntitySpaces Trial, familiarizing yourself with the "Getting Started" PDF, and actually porting some small piece as a test.


    David Neal Parsons
    www.entityspaces.net
  •  06-30-2008, 1:26 PM 10069 in reply to 7429

    Re: Moving to Entity Spaces from d00dads BusinessEntity

    Thanks David.. I shelved this project months ago under the "evaluate later" label and I'm just now picking it up again. One thing I haven't found is how to data bind the "view" from a collection of EntitySpaces objects.

     
    With d00dads I did this for a grid control I use :  

    Dim TheCustomerList as New Customer
    TheCustomerList.LoadAll()
    MyGrid.SetDataBinding(TheCustomerList.DefaultView, String.Empty)

    I haven't had a chance to install the trial version again but remember having trouble figuring out how to get the data bindings to work correctly with ES when I tried it several months ago. Can you point me in the right direction?

     
    Thanks!
     

  •  06-30-2008, 2:35 PM 10070 in reply to 10069

    Re: Moving to Entity Spaces from d00dads BusinessEntity

    You should be able to leave off "DefaultView" and set the DataGrid's DataSource directly to "TheCustomerList". The MS recommended approach for .NET 2 is to use a BindingSource. The ES2008 EntitySpacesDemo has an example hierarchical DataGrid that is set up this way:

    Code:
    EmployeesCollection coll = new EmployeesCollection();
    
    coll.LoadAll();
    
    this.bindingSource1.DataSource = coll;
    this.dataGrid1.DataSource = bindingSource1;

    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML