Beispiel #1
0
 public SqlNodeValue(NodeValueEntity entity, SqlContentRepository contentRepository)
 {
     this.Entity = entity;
     this.ContentRepository = contentRepository;
     this.ObserverManager = contentRepository.ObserverManager as SqlObserverManager;
     this.QueryManager = contentRepository.QueryManager as SqlQueryManager;
 }
Beispiel #2
0
 private NodeValueEntity CreateNewValueEntity(string name, string type)
 {
     var entity = new NodeValueEntity();
     entity.Name = name;
     entity.NodeId = Entity.Id;
     entity.NodeTypeId = QueryManager.GetNodeType(type).Id;
     entity.AddedDate = DateTime.Now;
     entity.StringValue = null;
     entity.BinaryValue = null;
     entity.DateTimeValue = null;
     return entity;
 }