Beispiel #1
0
 public static Boolean CreateFundamentalDaily( FundamentalDailyWorkFlow    daily)
 {
     Boolean flag = false;
        using (TransactionScope scope = new TransactionScope())
        {
        using (var context = new SycousCon())
            {
                try
                {
                    context.FundamentalDailyWorkFlows.AddObject(daily);
                    context.SaveChanges();
                    scope.Complete();
                    context.AcceptAllChanges();
                    flag = true;
                }
                catch (Exception ex)
                {
                    context.Dispose();
                    throw;
                }
            }
        }
        return flag;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the FundamentalDailyWorkFlows EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFundamentalDailyWorkFlows(FundamentalDailyWorkFlow fundamentalDailyWorkFlow)
 {
     base.AddObject("FundamentalDailyWorkFlows", fundamentalDailyWorkFlow);
 }
 /// <summary>
 /// Create a new FundamentalDailyWorkFlow object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static FundamentalDailyWorkFlow CreateFundamentalDailyWorkFlow(global::System.Int64 id, global::System.Int32 status)
 {
     FundamentalDailyWorkFlow fundamentalDailyWorkFlow = new FundamentalDailyWorkFlow();
     fundamentalDailyWorkFlow.ID = id;
     fundamentalDailyWorkFlow.Status = status;
     return fundamentalDailyWorkFlow;
 }