当前位置: 首页>>代码示例>>C#>>正文


C# IDalSession.GetList方法代码示例

本文整理汇总了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);
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:14,代码来源:ExtCustodianMapper.cs

示例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);
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:8,代码来源:AccountCategoryMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:8,代码来源:SymbolMapper.cs

示例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);
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:13,代码来源:FeeRuleMapper.cs

示例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.");
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:8,代码来源:ManagementCompanyMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:ExactJournalMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:AccountFamilyMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:BankMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:WithdrawalRuleMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:ExportedLedgerFileMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:ImportedFileMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:DividWepFileMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:15,代码来源:InstructionEngineParametersMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:NotaMapper.cs

示例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;
 }
开发者ID:kiquenet,项目名称:B4F,代码行数:10,代码来源:ContactMapper.cs


注:本文中的IDalSession.GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。