C# 클래스 mojoPortal.Data.DBLetterSubscription

파일 보기 프로젝트 열기: joeaudette/mojoportal 1 사용 예제들

공개 메소드들

메소드 설명
CountUsersNotSubscribedByLetter ( System.Guid siteGuid, System.Guid letterInfoGuid, bool excludeIfAnyUnsubscribeHx ) : int
Create ( System.Guid guid, System.Guid siteGuid, System.Guid letterInfoGuid, System.Guid userGuid, string email, bool isVerified, System.Guid verifyGuid, System.DateTime beginUtc, bool useHtml, string ipAddress ) : int

Inserts a row in the mp_LetterSubscribe table. Returns rows affected count.

CreateHistory ( System.Guid rowGuid, System.Guid siteGuid, System.Guid subscribeGuid, System.Guid letterInfoGuid, System.Guid userGuid, string email, bool isVerified, bool useHtml, System.DateTime beginUtc, System.DateTime endUtc, string ipAddress ) : int

Inserts a row in the mp_LetterSubscribeHx table. Returns rows affected count.

Delete ( System.Guid guid ) : bool

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.

DeleteByLetter ( System.Guid letterInfoGuid ) : bool

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.

DeleteBySite ( System.Guid siteGuid ) : bool

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.

DeleteByUser ( System.Guid userGuid ) : bool
DeleteHistoryByLetterInfo ( System.Guid letterInfoGuid ) : bool
DeleteHistoryBySite ( System.Guid siteGuid ) : bool
DeleteUnverified ( System.Guid letterInfoGuid, System.DateTime olderThanUtc ) : bool
Exists ( System.Guid letterInfoGuid, string email ) : bool

Gets a count of rows in the mp_LetterSubscribe table.

GetByEmail ( System.Guid siteGuid, System.Guid letterInfoGuid, string email ) : IDataReader
GetByEmail ( System.Guid siteGuid, string email ) : IDataReader

Gets an IDataReader with one row from the mp_LetterSubscribe table.

GetByLetter ( System.Guid letterInfoGuid ) : IDataReader

Gets an IDataReader with one row from the mp_LetterSubscribe table.

GetByUser ( System.Guid siteGuid, System.Guid userGuid ) : IDataReader

Gets an IDataReader with one row from the mp_LetterSubscribe table.

GetCountByLetter ( System.Guid letterInfoGuid ) : int

Gets a count of rows in the mp_LetterSubscribe table.

GetOne ( System.Guid guid ) : IDataReader

Gets an IDataReader with one row from the mp_LetterSubscribe table.

GetPage ( System.Guid letterInfoGuid, int pageNumber, int pageSize, int &totalPages ) : IDataReader

Gets a page of data from the mp_LetterSubscriber table.

GetSubscribersNotSentYet ( System.Guid letterGuid, System.Guid letterInfoGuid ) : IDataReader

Gets an IDataReader from the mp_LetterSubscriber table.

GetTop1000UsersNotSubscribed ( System.Guid siteGuid, System.Guid letterInfoGuid, bool excludeIfAnyUnsubscribeHx ) : IDataReader
Search ( System.Guid letterInfoGuid, string emailOrIpAddress ) : IDataReader
Update ( System.Guid guid, System.Guid userGuid, bool useHtml ) : bool

Updates a row in the mp_LetterSubscribe table. Returns true if row updated.

Verify ( System.Guid guid, bool isVerified, System.Guid verifyGuid ) : bool

비공개 메소드들

메소드 설명
GetConnectionString ( ) : String

메소드 상세

CountUsersNotSubscribedByLetter() 공개 정적인 메소드

public static CountUsersNotSubscribedByLetter ( System.Guid siteGuid, System.Guid letterInfoGuid, bool excludeIfAnyUnsubscribeHx ) : int
siteGuid System.Guid
letterInfoGuid System.Guid
excludeIfAnyUnsubscribeHx bool
리턴 int

Create() 공개 정적인 메소드

Inserts a row in the mp_LetterSubscribe table. Returns rows affected count.
public static Create ( System.Guid guid, System.Guid siteGuid, System.Guid letterInfoGuid, System.Guid userGuid, string email, bool isVerified, System.Guid verifyGuid, System.DateTime beginUtc, bool useHtml, string ipAddress ) : int
guid System.Guid guid
siteGuid System.Guid siteGuid
letterInfoGuid System.Guid letterInfoGuid
userGuid System.Guid userGuid
email string email
isVerified bool isVerified
verifyGuid System.Guid verifyGuid
beginUtc System.DateTime beginUtc
useHtml bool useHtml
ipAddress string
리턴 int

CreateHistory() 공개 정적인 메소드

Inserts a row in the mp_LetterSubscribeHx table. Returns rows affected count.
public static CreateHistory ( System.Guid rowGuid, System.Guid siteGuid, System.Guid subscribeGuid, System.Guid letterInfoGuid, System.Guid userGuid, string email, bool isVerified, bool useHtml, System.DateTime beginUtc, System.DateTime endUtc, string ipAddress ) : int
rowGuid System.Guid rowGuid
siteGuid System.Guid siteGuid
subscribeGuid System.Guid subscribeGuid
letterInfoGuid System.Guid letterInfoGuid
userGuid System.Guid userGuid
email string email
isVerified bool isVerified
useHtml bool useHtml
beginUtc System.DateTime beginUtc
endUtc System.DateTime endUtc
ipAddress string
리턴 int

Delete() 공개 정적인 메소드

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.
public static Delete ( System.Guid guid ) : bool
guid System.Guid guid
리턴 bool

DeleteByLetter() 공개 정적인 메소드

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.
public static DeleteByLetter ( System.Guid letterInfoGuid ) : bool
letterInfoGuid System.Guid
리턴 bool

DeleteBySite() 공개 정적인 메소드

Deletes a row from the mp_LetterSubscribe table. Returns true if row deleted.
public static DeleteBySite ( System.Guid siteGuid ) : bool
siteGuid System.Guid
리턴 bool

DeleteByUser() 공개 정적인 메소드

public static DeleteByUser ( System.Guid userGuid ) : bool
userGuid System.Guid
리턴 bool

DeleteHistoryByLetterInfo() 공개 정적인 메소드

public static DeleteHistoryByLetterInfo ( System.Guid letterInfoGuid ) : bool
letterInfoGuid System.Guid
리턴 bool

DeleteHistoryBySite() 공개 정적인 메소드

public static DeleteHistoryBySite ( System.Guid siteGuid ) : bool
siteGuid System.Guid
리턴 bool

DeleteUnverified() 공개 정적인 메소드

public static DeleteUnverified ( System.Guid letterInfoGuid, System.DateTime olderThanUtc ) : bool
letterInfoGuid System.Guid
olderThanUtc System.DateTime
리턴 bool

Exists() 공개 정적인 메소드

Gets a count of rows in the mp_LetterSubscribe table.
public static Exists ( System.Guid letterInfoGuid, string email ) : bool
letterInfoGuid System.Guid
email string
리턴 bool

GetByEmail() 공개 정적인 메소드

public static GetByEmail ( System.Guid siteGuid, System.Guid letterInfoGuid, string email ) : IDataReader
siteGuid System.Guid
letterInfoGuid System.Guid
email string
리턴 IDataReader

GetByEmail() 공개 정적인 메소드

Gets an IDataReader with one row from the mp_LetterSubscribe table.
public static GetByEmail ( System.Guid siteGuid, string email ) : IDataReader
siteGuid System.Guid
email string
리턴 IDataReader

GetByLetter() 공개 정적인 메소드

Gets an IDataReader with one row from the mp_LetterSubscribe table.
public static GetByLetter ( System.Guid letterInfoGuid ) : IDataReader
letterInfoGuid System.Guid
리턴 IDataReader

GetByUser() 공개 정적인 메소드

Gets an IDataReader with one row from the mp_LetterSubscribe table.
public static GetByUser ( System.Guid siteGuid, System.Guid userGuid ) : IDataReader
siteGuid System.Guid
userGuid System.Guid
리턴 IDataReader

GetCountByLetter() 공개 정적인 메소드

Gets a count of rows in the mp_LetterSubscribe table.
public static GetCountByLetter ( System.Guid letterInfoGuid ) : int
letterInfoGuid System.Guid
리턴 int

GetOne() 공개 정적인 메소드

Gets an IDataReader with one row from the mp_LetterSubscribe table.
public static GetOne ( System.Guid guid ) : IDataReader
guid System.Guid guid
리턴 IDataReader

GetPage() 공개 정적인 메소드

Gets a page of data from the mp_LetterSubscriber table.
public static GetPage ( System.Guid letterInfoGuid, int pageNumber, int pageSize, int &totalPages ) : IDataReader
letterInfoGuid System.Guid letterGuid
pageNumber int The page number.
pageSize int Size of the page.
totalPages int total pages
리턴 IDataReader

GetSubscribersNotSentYet() 공개 정적인 메소드

Gets an IDataReader from the mp_LetterSubscriber table.
public static GetSubscribersNotSentYet ( System.Guid letterGuid, System.Guid letterInfoGuid ) : IDataReader
letterGuid System.Guid
letterInfoGuid System.Guid letterInfoGuid
리턴 IDataReader

GetTop1000UsersNotSubscribed() 공개 정적인 메소드

public static GetTop1000UsersNotSubscribed ( System.Guid siteGuid, System.Guid letterInfoGuid, bool excludeIfAnyUnsubscribeHx ) : IDataReader
siteGuid System.Guid
letterInfoGuid System.Guid
excludeIfAnyUnsubscribeHx bool
리턴 IDataReader

Search() 공개 정적인 메소드

public static Search ( System.Guid letterInfoGuid, string emailOrIpAddress ) : IDataReader
letterInfoGuid System.Guid
emailOrIpAddress string
리턴 IDataReader

Update() 공개 정적인 메소드

Updates a row in the mp_LetterSubscribe table. Returns true if row updated.
public static Update ( System.Guid guid, System.Guid userGuid, bool useHtml ) : bool
guid System.Guid guid
userGuid System.Guid
useHtml bool useHtml
리턴 bool

Verify() 공개 정적인 메소드

public static Verify ( System.Guid guid, bool isVerified, System.Guid verifyGuid ) : bool
guid System.Guid
isVerified bool
verifyGuid System.Guid
리턴 bool