コード例 #1
0
 partial void DeleteRecyclerGarbageType(RecyclerGarbageType instance);
コード例 #2
0
 partial void InsertRecyclerGarbageType(RecyclerGarbageType instance);
コード例 #3
0
 partial void UpdateRecyclerGarbageType(RecyclerGarbageType instance);
コード例 #4
0
ファイル: Provider.cs プロジェクト: sujathkumar/iwms
        /// <summary>
        /// InsertGarbageType
        /// </summary>
        /// <param name="garbageTypeId"></param>
        /// <param name="recyclerId"></param>
        private void InsertGarbageType(Guid garbageTypeId, Guid recyclerId)
        {
            Guid recyclerGarbageTypeId = Guid.NewGuid();

            RecyclerGarbageType recyclerGarbageType = new RecyclerGarbageType
            {
                Id = recyclerGarbageTypeId,
                GarbageTypeId = garbageTypeId,
                RecyclerId = recyclerId
            };

            context.RecyclerGarbageTypes.InsertOnSubmit(recyclerGarbageType);
            SubmitData();
        }