本文整理汇总了C#中IDalSession.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# IDalSession.GetList方法的具体用法?C# IDalSession.GetList怎么用?C# IDalSession.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDalSession
的用法示例。
在下文中一共展示了IDalSession.GetList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetExtCustodianPositions
/// <summary>
/// Gets the Positions for the ExtCustodian for the specified date
/// </summary>
/// <param name="session">Data session object</param>
/// <param name="custodian">The specified ExtCustodians</param>
/// <param name="balanceDate">The specified date</param>
/// <returns>A list ExtCustodian Positions</returns>
public static IList GetExtCustodianPositions(IDalSession session, ExtCustodian custodian, DateTime balanceDate)
{
List<NHibernate.Criterion.ICriterion> expressions = new List<NHibernate.Criterion.ICriterion>();
expressions.Add(NHibernate.Criterion.Expression.Eq("Custodian.Key", custodian.Key));
expressions.Add(NHibernate.Criterion.Expression.Eq("BalanceDate", balanceDate));
return session.GetList(typeof(ExtPosition), expressions);
}
示例2: GetAccountCategories
public static IList GetAccountCategories(IDalSession session, IAssetManager am)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("AssetManager.Key", am.Key));
List<Order> orderings = new List<Order>();
orderings.Add(Order.Asc("CustomerType"));
return session.GetList(typeof(AccountCategory), expressions, orderings, null, null);
}
示例3: GetSymbol
public static IInstrumentSymbol GetSymbol(IDalSession session, ITradeableInstrument Instrument, IExternalInterface externalInterface)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Instrument.Key", Instrument.Key));
expressions.Add(Expression.Eq("ExternalInterface", externalInterface));
IList result = session.GetList(typeof(InstrumentSymbol), expressions);
return (result.Count > 0) ? (IInstrumentSymbol)result[0] : null;
}
示例4: GetFeeRules
/// <summary>
/// Retrieves a list of all <b>FeeRule</b> objects in the system.
/// </summary>
/// <param name="session">An instance of the Data Access Library (see class <see cref="B4F.TotalGiro.DAL.NHSession">NHSession</see>).</param>
/// <returns>A list of all <b>FeeRule</b> objects in the system.</returns>
public static IList GetFeeRules(IDalSession session)
{
List<ICriterion> expressions = new List<ICriterion>();
IManagementCompany company = LoginMapper.GetCurrentManagmentCompany(session);
if (!company.IsStichting)
expressions.Add(Expression.Eq("AssetManager.Key", company.Key));
return session.GetList(typeof(FeeRule), expressions);
}
示例5: GetEffectenGiroCompany
public static IEffectenGiro GetEffectenGiroCompany(IDalSession session)
{
IList list = session.GetList(typeof(EffectenGiro));
if (list.Count == 1)
return (IEffectenGiro)list[0];
else
throw new ApplicationException("There should be exactly one EffectenGiro company in the system.");
}
示例6: GetExactJournal
public static IExactJournal GetExactJournal(IDalSession session, int id)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Key", id));
IList files = session.GetList(typeof(ExactJournal), expressions);
if (files != null && files.Count == 1)
return (ExactJournal)(files[0]);
else
return null;
}
示例7: GetAccountFamily
public static IAccountFamily GetAccountFamily(IDalSession session, string prefix)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("AccountPrefix", prefix));
IList result = session.GetList(typeof(IAccountFamily), expressions);
if ((result != null) && (result.Count > 0))
return (IAccountFamily)result[0];
else
return null;
}
示例8: GetBank
public static IBank GetBank(IDalSession session, string bankName)
{
IBank bank = null;
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Like("Name", bankName));
IList list = session.GetList(typeof(Bank), expressions);
if (list != null && list.Count == 1)
bank = (IBank)list[0];
return bank;
}
示例9: GetWithdrawalRule
public static IWithdrawalRule GetWithdrawalRule(IDalSession session, int id)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Key", id));
IList rules = session.GetList(typeof(WithdrawalRule), expressions);
if (rules != null && rules.Count == 1)
return (IWithdrawalRule)rules[0];
else
return null;
}
示例10: GetExportedFile
public static IExportedLedgerFile GetExportedFile(IDalSession session, int fileID)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Key", fileID));
IList result = session.GetList(typeof(ExportedLedgerFile), expressions);
if ((result != null) && (result.Count > 0))
return (IExportedLedgerFile)result[0];
else
return null;
}
示例11: CheckFileNotImported
public static bool CheckFileNotImported(IDalSession session, FileInfo FileToCheck)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("FileShortName", FileToCheck.Name));
IList list = session.GetList(typeof(ImportedFile), expressions);
if (list.Count == 0)
return true;
else
return false;
}
示例12: GetDividWepFile
public static DividWepFile GetDividWepFile(IDalSession session, int FileID)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Key", FileID));
IList files = session.GetList(typeof(DividWepFile), expressions);
if (files != null && files.Count == 1)
return (DividWepFile)(files[0]);
else
return null;
}
示例13: GetParameters
/// <summary>
/// Retrieves the InstructionEngineParameters
/// </summary>
/// <param name="session">An instance of the Data Access Library <see cref="T:B4F.TotalGiro.DAL.NHSession">NHSession</see> class</param>
/// <returns>InstructionEngineParameters object</returns>
public static InstructionEngineParameters GetParameters(IDalSession session)
{
InstructionEngineParameters engineParams = null;
IList list = session.GetList(typeof(InstructionEngineParameters));
if (list != null && list.Count == 1)
{
engineParams = (InstructionEngineParameters)list[0];
}
return engineParams;
}
示例14: GetNota
public static INota GetNota(IDalSession session, int notaId)
{
INota nota = null;
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("Key", notaId));
IList list = session.GetList(typeof(Nota), expressions);
if (list != null && list.Count == 1)
nota = (INota)list[0];
return nota;
}
示例15: GetContactbyKVK
public static IContactCompany GetContactbyKVK(IDalSession session, string KvKNummer)
{
List<ICriterion> expressions = new List<ICriterion>();
expressions.Add(Expression.Eq("KvKNumber", KvKNummer));
IList contacts = session.GetList(typeof(ContactCompany), expressions);
if (contacts != null && contacts.Count == 1)
return (IContactCompany)contacts[0];
else
return null;
}