コード例 #1
0
 /// <summary>
 /// Устаревший метод для добавления новых объектов в набор EntitySet user_type. Взамен можно использовать метод .Add связанного свойства ObjectSet&lt;T&gt;.
 /// </summary>
 public void AddTouser_type(user_type user_type)
 {
     base.AddObject("user_type", user_type);
 }
コード例 #2
0
 /// <summary>
 /// Создание нового объекта user_type.
 /// </summary>
 /// <param name="id_user_type">Исходное значение свойства id_user_type.</param>
 /// <param name="name">Исходное значение свойства name.</param>
 public static user_type Createuser_type(global::System.Int32 id_user_type, global::System.String name)
 {
     user_type user_type = new user_type();
     user_type.id_user_type = id_user_type;
     user_type.name = name;
     return user_type;
 }