本文整理汇总了C#中IDalSession.Insert方法的典型用法代码示例。如果您正苦于以下问题:C# IDalSession.Insert方法的具体用法?C# IDalSession.Insert怎么用?C# IDalSession.Insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDalSession
的用法示例。
在下文中一共展示了IDalSession.Insert方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: saveMutations
private void saveMutations(IDalSession session, ref List<IValuationMutation> mutationsToSave, ref IValuationCashMutation[] cashMutationsToSave)
{
if (mutationsToSave != null && mutationsToSave.Count > 0 && cashMutationsToSave != null && cashMutationsToSave.Length > 0)
{
object[] mutations = new object[mutationsToSave.Count + cashMutationsToSave.Length];
mutationsToSave.ToArray().CopyTo(mutations, 0);
cashMutationsToSave.CopyTo(mutations, mutationsToSave.Count);
session.Insert(mutations);
}
else if (mutationsToSave != null && mutationsToSave.Count > 0)
{
session.Insert(mutationsToSave);
}
else if (cashMutationsToSave != null && cashMutationsToSave.Length > 0)
{
session.Insert(cashMutationsToSave);
}
}
示例2: Insert
public static void Insert(IDalSession session, Country obj)
{
session.Insert(obj);
}
示例3: Insert
// Return an boolean.
public static bool Insert(IDalSession session, IReportLetter obj)
{
return session.Insert(obj);
}
示例4: Insert
public static void Insert(IDalSession session, IAccountHolder obj)
{
session.Insert(obj);
}
示例5: Insert
/// <summary>
/// Creates a new object in the database
/// </summary>
/// <param name="session">An instance of the Data Access Library <see cref="T:B4F.TotalGiro.DAL.NHSession">NHSession</see> class</param>
/// <param name="obj">Object of type Login</param>
public static void Insert(IDalSession session, ILogin obj)
{
session.Insert(obj);
}
示例6: Insert
/// <summary>
/// Inserts a <b>Contact</b> object into the database.
/// </summary>
/// <param name="session">An instance of the Data Access Library (see class <see cref="B4F.TotalGiro.DAL.NHSession">NHSession</see>).</param>
/// <param name="obj">The <b>Contact</b> object to insert into the database.</param>
public static bool Insert(IDalSession session, IContact obj)
{
return session.Insert(obj);
}
示例7: Insert
public static void Insert(IDalSession session, ICounterAccount obj)
{
session.Insert(obj);
}
示例8: Insert
public static bool Insert(IDalSession session, IRemisier obj)
{
return session.Insert(obj);
}
示例9: Insert
public static void Insert(IDalSession session, INavCalculation obj)
{
session.Insert(obj); ;
}
示例10: Insert
/// <summary>
/// Makes newly created FSExportFile persistent.
/// </summary>
/// <param name="DataSession">data session object</param>
/// <param name="obj">newly created object</param>
public static void Insert(IDalSession DataSession, FSExportFile obj)
{
DataSession.Insert(obj);
}
示例11: Insert
public static void Insert(IDalSession session, IReport obj)
{
session.Insert(obj);
}