Skip to content

Commit

Permalink
make property setters public; add json attributes. may be able to rem…
Browse files Browse the repository at this point in the history
…ove these
  • Loading branch information
ormico committed Mar 6, 2016
1 parent e914e39 commit f1467a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Ormico.DbPatchManager/Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Ormico.DbPatchManager
{
[JsonObject(IsReference = true)]
public class Patch
{
public Patch()
Expand All @@ -19,12 +20,12 @@ public Patch(string Id, List<Patch> DependsOn)
//todo: constructor for json.net

[JsonProperty("id")]
public string Id { get; protected set; }
public string Id { get; /* protected */ set; }

[JsonProperty("dependsOn")]
public List<Patch> DependsOn { get; protected set; }
[JsonProperty("dependsOn", ItemIsReference = true)]
public List<Patch> DependsOn { get; /* protected */ set; }

[JsonIgnore]
public List<Patch> Children { get; protected set; }
public List<Patch> Children { get; /* protected */ set; }
}
}

0 comments on commit f1467a1

Please sign in to comment.