Save() 개인적인 메소드

private Save ( ) : void
리턴 void
예제 #1
0
파일: Event.cs 프로젝트: pchaozhong/FlexNet
        internal static void CreateAndSave(string contentPath, int creatorId, int lastModifierId, NotificationType type, string who, DateTime?when)
        {
            if (type != NotificationType.MovedFrom && type != NotificationType.MovedTo)
            {
                if (!IsSubscriptionExist(contentPath))
                {
                    return;
                }
            }

            var @event = new Event
            {
                ContentPath      = contentPath,
                NotificationType = type,
                Who            = who,
                CreatorId      = creatorId,
                LastModifierId = lastModifierId,
            };

            if (when.HasValue)
            {
                @event.When = when.Value;
            }
            @event.Save();
        }
예제 #2
0
파일: Event.cs 프로젝트: maxpavlov/FlexNet
        //-- caller: NotificationObserver
        public static void CreateAndSave(Node node, NotificationType type, string who)
        {
            if (type != NotificationType.MovedFrom && type != NotificationType.MovedTo)
                if (!IsSubscriptionExist(node.Path))
                    return;

            var @event = new Event
            {
                ContentPath = node.Path,
                NotificationType = type,
                Who = who,
                CreatorId = node.CreatedById,
                LastModifierId = node.NodeModifiedById
            };
            @event.Save();
        }
예제 #3
0
파일: Event.cs 프로젝트: maxpavlov/FlexNet
        internal static void CreateAndSave(string contentPath, int creatorId, int lastModifierId, NotificationType type, string who, DateTime? when)
        {
            if (type != NotificationType.MovedFrom && type != NotificationType.MovedTo)
                if (!IsSubscriptionExist(contentPath))
                    return;

            var @event = new Event
            {
                ContentPath = contentPath,
                NotificationType = type,
                Who = who,
                CreatorId = creatorId,
                LastModifierId = lastModifierId,
            };
            if (when.HasValue)
                @event.When = when.Value;
            @event.Save();
        }
예제 #4
0
파일: Event.cs 프로젝트: pchaozhong/FlexNet
        //-- caller: NotificationObserver
        public static void CreateAndSave(Node node, NotificationType type, string who)
        {
            if (type != NotificationType.MovedFrom && type != NotificationType.MovedTo)
            {
                if (!IsSubscriptionExist(node.Path))
                {
                    return;
                }
            }

            var @event = new Event
            {
                ContentPath      = node.Path,
                NotificationType = type,
                Who            = who,
                CreatorId      = node.CreatedById,
                LastModifierId = node.NodeModifiedById
            };

            @event.Save();
        }