/// <summary> /// Create a new Translation object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="sourceId">Initial value of the SourceId property.</param> /// <param name="targetId">Initial value of the TargetId property.</param> public static Translation CreateTranslation(global::System.Int32 id, global::System.Int32 sourceId, global::System.Int32 targetId) { Translation translation = new Translation(); translation.Id = id; translation.SourceId = sourceId; translation.TargetId = targetId; return translation; }
/// <summary> /// Deprecated Method for adding a new object to the Translations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTranslations(Translation translation) { base.AddObject("Translations", translation); }