The EntitySpaces Community

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

Customer customer = customerCollection.AddNew() vs customerCollection.AttachEntity(customer)

Last post 08-15-2008, 3:49 PM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  08-15-2008, 12:56 PM 10763

    Customer customer = customerCollection.AddNew() vs customerCollection.AttachEntity(customer)

    Which one is better, when should I use one or the other, and which one is more performatic?

    Customer customer = customerCollection.AddNew()

    vs

    customerCollection.AttachEntity(customer)

  •  08-15-2008, 3:49 PM 10765 in reply to 10763

    Re: Customer customer = customerCollection.AddNew() vs customerCollection.AttachEntity(customer)

    It's much better to use

    Customer customer = customerCollection.AddNew() 

     


    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML