Esempio n. 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);
        }
Esempio n. 2
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;
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
 }