public void AssociateTo(string objectId, int contextId) { var currentAssociations = Associations; if (Associations == null) { Associations = Enumerable.Empty <TagAssociationContext>(); } var aux = Associations.ToList(); aux.Add( new TagAssociationContext() { ObjectId = objectId, ContextId = contextId }); Associations = aux; }