public IUserPermissionMvoState Get(UserPermissionId id) { IUserPermissionMvoState state = CurrentSession.Get <UserPermissionMvoState> (id); if (state == null) { state = new UserPermissionMvoState(); (state as UserPermissionMvoState).UserPermissionId = id; } return(state); }
public IUserPermissionMvoState Get(UserPermissionId id, bool nullAllowed) { IUserPermissionMvoState state = CurrentSession.Get <UserPermissionMvoState> (id); if (!nullAllowed && state == null) { state = new UserPermissionMvoState(); (state as UserPermissionMvoState).UserPermissionId = id; } if (ReadOnlyProxyGenerator != null && state != null) { return(ReadOnlyProxyGenerator.CreateProxy <IUserPermissionMvoState>(state, new Type[] { }, _readOnlyPropertyNames)); } return(state); }
public static CreateUserPermissionMvo ToCreateUserPermissionMvo(this UserPermissionMvoState state) { return(state.ToCreateUserPermissionMvo <CreateUserPermissionMvo>()); }
public static MergePatchUserPermissionMvo ToMergePatchUserPermissionMvo(this UserPermissionMvoState state) { return(state.ToMergePatchUserPermissionMvo <MergePatchUserPermissionMvo>()); }
public static DeleteUserPermissionMvo ToDeleteUserPermissionMvo(this UserPermissionMvoState state) { return(state.ToDeleteUserPermissionMvo <DeleteUserPermissionMvo>()); }
public static IUserPermissionMvoCommand ToCreateOrMergePatchUserPermissionMvo(this UserPermissionMvoState state) { return(state.ToCreateOrMergePatchUserPermissionMvo <CreateUserPermissionMvo, MergePatchUserPermissionMvo>()); }
public UserPermissionMvoStateDto(UserPermissionMvoState state) { this._state = state; }
public UserPermissionMvoStateDto() { this._state = new UserPermissionMvoState(); }