Profiles: Method added, imp./exp. fixed, Procedures: Selection by profile, Create from profile button, etc, ver. 3.5.1992
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user