Example #1
0
        static SetupOptions ParseSetupOption(string[] args)
        {
            var parser = new XGetopt();
            char c = '\0';
            var opt = new SetupOptions();
            while ((c = parser.Getopt(args.Length, args, "c:")) != '\0')
            {
                switch (c)
                {
                    case 'h':
                    default:
                        SetupUsage();
                        return null;
                }
            }

            opt.DropAndCreateDatabase = true;
            return opt;
        }
Example #2
0
 private static void CreateUsers(SetupOptions opt, Organization org)
 {
     MembershipCreateStatus createStatus;
     Membership.CreateUser(opt.BossUserName, opt.BossPassword, opt.BossEmail, null, null, true, null, out createStatus);
 }