partial void DeleteRecyclerGarbageType(RecyclerGarbageType instance);
 partial void InsertRecyclerGarbageType(RecyclerGarbageType instance);
 partial void UpdateRecyclerGarbageType(RecyclerGarbageType instance);
Ejemplo n.º 4
0
        /// <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();
        }