Profiles: Method added, imp./exp. fixed, Procedures: Selection by profile, Create from profile button, etc, ver. 3.5.1992

This commit is contained in:
Milan Hanajik
2022-11-25 13:59:35 +01:00
parent b54de856af
commit 6dcd40c640
20 changed files with 667 additions and 265 deletions
+16
View File
@@ -242,6 +242,22 @@ namespace TBF.Rig
public static string CurrentlyLoadedComponentName;
/// <summary>
/// Load component entities from the database and convert them to TBF components
/// derived from IComponent with mutual references.
/// </summary>
/// <param name="session">NHibernate DB session</param>
/// <returns>A list of TBF Components</returns>
public static IList<IComponent> LoadComponentsFromDB(NHibernate.ISession session)
{
/// Load the list of components from the database
var cmptnEntities = session.QueryOver<Config.Entities.Component>()
.OrderBy(x => x.ItemNr).Asc
.List();
return LoadComponentsFromDB(cmptnEntities);
}
/// <summary>
/// Load component entities from the database and convert them to TBF components
/// derived from IComponent with mutual references.