S
shapper
Hello,
I am replicating an SQL database table in XML. I have the following
columns:
public class Bag {
public Guid Id { get; set; }
public String Content { get; set; }
public DateTime? Created { get; set; }
public String Name { get; set; }
public Boolean? Open { get; set; }
public DateTime? Updated { get; set; }
}
When I should use something like:
<Bag Id="" Open="">
<Content></Content>
Or
<Bag Id="">
<Content></Content>
<Open></Open>
</Bag>
Please, see the difference between the Open and Id ...
When should I use one or the other?
Thanks,
Miguel
I am replicating an SQL database table in XML. I have the following
columns:
public class Bag {
public Guid Id { get; set; }
public String Content { get; set; }
public DateTime? Created { get; set; }
public String Name { get; set; }
public Boolean? Open { get; set; }
public DateTime? Updated { get; set; }
}
When I should use something like:
<Bag Id="" Open="">
<Content></Content>
Or
<Bag Id="">
<Content></Content>
<Open></Open>
</Bag>
Please, see the difference between the Open and Id ...
When should I use one or the other?
Thanks,
Miguel