Beispiel #1
0
 /// <summary>
 /// Create a new Parameter object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="key">Initial value of the Key property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Parameter CreateParameter(global::System.Int32 id, global::System.String key, global::System.Boolean isActive)
 {
     Parameter parameter = new Parameter();
     parameter.ID = id;
     parameter.Key = key;
     parameter.IsActive = isActive;
     return parameter;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Parameters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToParameters(Parameter parameter)
 {
     base.AddObject("Parameters", parameter);
 }
 internal static BLLParameter GetBLLParameter(DALParameter dalParameter)
 {
     if (dalParameter == null) return null;
     return new BLLParameter
                {
                    Id = dalParameter.ID,
                    Key = dalParameter.Key,
                    Value = dalParameter.Value,
                    IsActive = dalParameter.IsActive
                };
 }