コード例 #1
0
ファイル: Zoo.Designer.cs プロジェクト: kbo4sho/ZooKeeperWpf
 /// <summary>
 /// Deprecated Method for adding a new object to the ScriptEventModel EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToScriptEventModel(ScriptEventModel scriptEventModel)
 {
     base.AddObject("ScriptEventModel", scriptEventModel);
 }
コード例 #2
0
ファイル: Zoo.Designer.cs プロジェクト: kbo4sho/ZooKeeperWpf
 /// <summary>
 /// Create a new ScriptEventModel object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="messageType">Initial value of the MessageType property.</param>
 /// <param name="animalType">Initial value of the AnimalType property.</param>
 public static ScriptEventModel CreateScriptEventModel(global::System.Int32 id, global::System.Int32 messageType, global::System.Int32 animalType)
 {
     ScriptEventModel scriptEventModel = new ScriptEventModel();
     scriptEventModel.Id = id;
     scriptEventModel.MessageType = messageType;
     scriptEventModel.AnimalType = animalType;
     return scriptEventModel;
 }