예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="e"></param>
        public static T ForActiveOrg <T>(this T r, OrgSupportingDomainModel m)
            where T : Repository
        {
            r.DataContext.ActiveOrgId = m.OrgId;

            return(r);
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dc"></param>
        /// <param name="entity"></param>
        public static T UpdateId <T>(this T e, OrgSupportingDomainModel model)
            where T : IOrgSupportingEntity
        {
            model.OrgId = e.OrgId;
            model.Id    = e.Id;

            return(e);
        }