Exemplo n.º 1
0
        private ConceptCode CreatePersistentCode(ISession session, string codeSource, string value)
        {
            var code = new ConceptCode(codeSource, value);

            session.Save(code);
            return(code);
        }
Exemplo n.º 2
0
        private async Task <ConceptCode> CreatePersistentCodeAsync(ISession session, string codeSource, string value, CancellationToken cancellationToken = default(CancellationToken))
        {
            var code = new ConceptCode(codeSource, value);

            await(session.SaveAsync(code, cancellationToken));
            return(code);
        }
Exemplo n.º 3
0
 public ConceptCodeMapping(ConceptCodeRelationship relationship, ConceptCode code)
 {
     this.Relationship = relationship;
     this.Code         = code;
 }