Exemple #1
0
 public virtual bool AreEqual(IConceptAliasModel model, IConceptAlias entity)
 {
     return(NameableEntityMapper.AreEqual(model, entity)
            // ConceptAlias Properties
            // <None>
            // Related Objects
            && model.ConceptId == entity.ConceptId
            );
 }
 public virtual bool AreEqual(IConceptAliasModel model, IConceptAlias entity)
 {
     return NameableEntityMapper.AreEqual(model, entity)
         // ConceptAlias Properties
         // <None>
         // Related Objects
         && model.ConceptId == entity.ConceptId
         ;
 }
 protected bool Deactivate(IConceptAlias entity)
 {
     // Deactivate it
     ConceptAliasesRepository.Deactivate(entity);
     // Try to Save Changes
     ConceptAliasesRepository.SaveChanges();
     // Finished!
     return(true);
 }
 public virtual IConceptAliasModel MapToModelListing(IConceptAlias entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = NameableEntityMapper.MapToModelListing<IConceptAlias, ConceptAliasModel>(entity);
     // ConceptAlias Properties
     // <None>
     // Related Objects
     model.ConceptId = entity.ConceptId;
     // Return Entity
     return model;
 }
Exemple #5
0
        public virtual IConceptAliasModel MapToModelListing(IConceptAlias entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelListing <IConceptAlias, ConceptAliasModel>(entity);

            // ConceptAlias Properties
            // <None>
            // Related Objects
            model.ConceptId = entity.ConceptId;
            // Return Entity
            return(model);
        }
 public virtual void MapToEntity(IConceptAliasModel model, ref IConceptAlias entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     NameableEntityMapper.MapToEntity(model, ref entity);
     // ConceptAlias Properties
     // <None>
     // Related Objects
     entity.ConceptId = model.ConceptId;
     entity.Concept = (Concept)model.Concept?.MapToEntity();
     // Associated Objects
     // <None>
 }
Exemple #7
0
 public virtual void MapToEntity(IConceptAliasModel model, ref IConceptAlias entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     NameableEntityMapper.MapToEntity(model, ref entity);
     // ConceptAlias Properties
     // <None>
     // Related Objects
     entity.ConceptId = model.ConceptId;
     entity.Concept   = (Concept)model.Concept?.MapToEntity();
     // Associated Objects
     // <None>
 }
 protected bool Remove(IConceptAlias entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     ConceptAliasesRepository.Remove(entity);
     // Try to Save Changes
     ConceptAliasesRepository.SaveChanges();
     // Finished!
     return(true);
 }
Exemple #9
0
 public static bool AreEqual(this IConceptAliasModel model, IConceptAlias entity)
 {
     return(Mapper.AreEqual(model, entity));
 }
 public void Add(IConceptAlias entity)
 {
     Context.ConceptAliases.Add((ConceptAlias)entity);
 }
Exemple #11
0
 public static void MapToEntity(this IConceptAliasModel model, ref IConceptAlias entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
Exemple #12
0
 public static IConceptAliasModel MapToModelListing(this IConceptAlias entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
Exemple #13
0
 public void Remove(IConceptAlias entity)
 {
     Context.ConceptAliases.Remove((ConceptAlias)entity);
 }
Exemple #14
0
 public void Add(IConceptAlias entity)
 {
     Context.ConceptAliases.Add((ConceptAlias)entity);
 }
 public void Update(IConceptAlias entity)
 {
     Context.SetModified(entity);
 }
 public static void MapToEntity(this IConceptAliasModel model, ref IConceptAlias entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 protected bool Deactivate(IConceptAlias entity)
 {
     // Deactivate it
     ConceptAliasesRepository.Deactivate(entity);
     // Try to Save Changes
     ConceptAliasesRepository.SaveChanges();
     // Finished!
     return true;
 }
Exemple #18
0
 public void Deactivate(IConceptAlias entity)
 {
     entity.Active = false;
     Update(entity);
 }
Exemple #19
0
 public void Update(IConceptAlias entity)
 {
     Context.SetModified(entity);
 }
 public void Deactivate(IConceptAlias entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Remove(IConceptAlias entity)
 {
     Context.ConceptAliases.Remove((ConceptAlias)entity);
 }
 protected bool Remove(IConceptAlias entity)
 {
     if (entity == null) { return true; } // No entity found to remove, consider it passed
     // Remove it
     ConceptAliasesRepository.Remove(entity);
     // Try to Save Changes
     ConceptAliasesRepository.SaveChanges();
     // Finished!
     return true;
 }
 public static bool AreEqual(this IConceptAliasModel model, IConceptAlias entity)
 {
     return Mapper.AreEqual(model, entity);
 }