/// <summary> /// Create a new MeterLog object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="operationInput">Initial value of the OperationInput property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> public static MeterLog CreateMeterLog(global::System.Int64 id, global::System.Boolean operationInput, global::System.Int32 isDeleted, global::System.Boolean isActive) { MeterLog meterLog = new MeterLog(); meterLog.ID = id; meterLog.OperationInput = operationInput; meterLog.IsDeleted = isDeleted; meterLog.IsActive = isActive; return meterLog; }
public static MeterLog EditMeterLog(Int64 meterID) { MeterLog meter = new MeterLog(); using (var context = new SycousCon()) { try { meter = context.MeterLogs.SingleOrDefault(s => s.MeterID == meterID&& s.IsDeleted==0 && s.IsActive==false); } catch (Exception ex) { context.Dispose(); throw; } } return meter; }
/// <summary> /// Deprecated Method for adding a new object to the MeterLogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMeterLogs(MeterLog meterLog) { base.AddObject("MeterLogs", meterLog); }