News, examples, tips, ideas and plans.
Thoughts around ORM, .NET and SQL databases.

Tuesday, May 03, 2011

DataObjects.Net is updated to build 7487

Hello All,

Today, May 3, both stable versions of DataObjects.Net (v.4.3 & v.4.4) were updated to the latest revision, 7487.

Bugs fixed:

- Field with type of object is not initialized in DTO on query execution. Here is the detailed scenario, although simplified:
public class MyEntity : Entity
  [Field, Key]
  public int Id { get; private set; }

  public string Text { get; set; }

public class DTO1
  public int Id { get; set; }

  public DTO1(MyEntity entity)
    Id = entity.Id;

public class DTO2
  public object DTO1 { get; set; }

using (var session = Domain.OpenSession()) {
  using (var t = session.OpenTransaction()) {

    var q = session.Query.All()
      .Select(c => new DTO2 {DTO1 = new DTO1(c)});


- Entity.IsMaterializing flag is added to help distinguishing the case when Entity is being materialized from the case when it is being created via ordinary constructor. Usage:

// Overriding Entity.OnInitialize method
protected override void OnInitialize()

    // Make some new entity initialization logic

The updated installers as well as binaries can be downloaded from the official website:

The detailed scenario is added to the bug fixed.


  1. Can you provide more detail on bug with DTO?

  2. This is such a great update by Microsoft they have fully divert their application to object oriented program. Because all the latest programing consist the concept of object oriented program. Best Dissertation Writing Services Online

  3. Sometimes, an instructor can assign a specific title and movie to review. Even under such circumstances, you should create your review as if your instructor has not watched it before. Additionally, your movie review should be detailed enough to make the decision of watching the movie or not easier.

  4. There are quite a lot of different information available on the Internet right now, this is about quantity. However, this does not guarantee reliability and safety. Therefore, I only use proven resources for motivation letter writing.