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(); }
public static void SingleIncludeCommon(FurnitureHelperContext context, OwningEntity entity) { if (entity != null) { context.Entry <OwningEntity>(entity).Reference(own => own.concrete_parts).Load(); } }
public static void SingleIncludeCommon(FurnitureHelperContext context, MaterialEntity entity) { if (entity != null) { context.Entry <MaterialEntity>(entity).Collection(material => material.colors).Load(); } }