public SqlNodeValue(NodeValueEntity entity, SqlContentRepository contentRepository) { this.Entity = entity; this.ContentRepository = contentRepository; this.ObserverManager = contentRepository.ObserverManager as SqlObserverManager; this.QueryManager = contentRepository.QueryManager as SqlQueryManager; }
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; }