コード例 #1
0
 public void SendEmail(IInsertMember insertMember)
 {
     TfEmail.Send(
         "MemberRegister",
         insertMember.Member.email,
         insertMember.Member.ToDictionary());
 }
コード例 #2
0
        public void InsertMember(IInsertMember insertMember)
        {
            insertMember.Member.activation_key = KeyGenerator.GetUniqueKey(100);
            var members = _Schemas.Members;

            members.Entity.SetValuesFromModel(insertMember.Member, false);
            members.Insert();
        }
コード例 #3
0
        public ValidationResult ValidateUsername(IInsertMember insertMember)
        {
            var members = _Schemas.Members;

            members.Entity.username = insertMember.Member.username;
            members.Entity.active   = EnumActive.Active;
            if (members.Count > 0)
            {
                return(TfValidationResult.Compose(
                           "InvalidDuplicate",
                           new[] { insertMember.Member.username },
                           nameof(insertMember.Member.username)));
            }
            return(null);
        }
コード例 #4
0
ファイル: Insert.cs プロジェクト: windischb/PgSql
        public Insert AddClause(IInsertMember clause)
        {
            switch (clause)
            {
            case IntoColumns ic:
                _intoColumns = ic;
                break;

            case IValues val:
                _valueClauses.Add(val);
                break;

            case Returning ret:
                _returningClause = ret;
                break;
            }

            return(this);
        }