Ejemplo n.º 1
0
        public static void SingleIncludeCommon(FurnitureHelperContext context, PartEntity entity)
        {
            if (entity == null)
            {
                return;
            }

            context.Entry <PartEntity>(entity).Collection(part => part.materials).Load();
            MaterialRepo.ForEachIncludeCommon(context, entity.materials);
            context.Entry <PartEntity>(entity).Collection(part => part.part_controllers_embed_relative_positions).Load();
        }
Ejemplo n.º 2
0
 public static void SingleIncludeCommon(FurnitureHelperContext context, OwningEntity entity)
 {
     if (entity != null)
     {
         context.Entry <OwningEntity>(entity).Reference(own => own.concrete_parts).Load();
     }
 }
Ejemplo n.º 3
0
 public static void SingleIncludeCommon(FurnitureHelperContext context, MaterialEntity entity)
 {
     if (entity != null)
     {
         context.Entry <MaterialEntity>(entity).Collection(material => material.colors).Load();
     }
 }