Submission declined on 18 April 2024 by DoubleGrazing (talk). This submission is not adequately supported by reliable sources. Reliable sources are required so that information can be verified. If you need help with referencing, please see Referencing for beginners and Citing sources. This draft's references do not show that the subject qualifies for a Wikipedia article. In summary, the draft needs multiple published sources that are:
Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
|
Submission declined on 8 February 2024 by Hey man im josh (talk). This draft's references do not show that the subject qualifies for a Wikipedia article. In summary, the draft needs multiple published sources that are: Declined by Hey man im josh 7 months ago.
|
- Comment: Zero evidence of notability. DoubleGrazing (talk) 09:10, 18 April 2024 (UTC)
Developer(s) | Prasomsak Khunmuen |
---|---|
Initial release | 2024, |
Written in | Javascript |
Available in | English |
Type | Code generation, Scaffold (programming) |
License | Proprietary |
Website | stackpuz |
StackPuz is the Web Application Code Generator that will generate the Source code based on the user-defined database table. StackPuz uses the Model–view–controller (MVC) design pattern to create the user interfaces and control logic.[1] When the user scaffolds the table it will produce the Controller and its Views and let the user customize it later. The scaffolding technique will increase productivity when developing the standard data operations in web application projects.[2]
When working with StackPuz, the user needs to define the database table first. For example if the user has a product table like this.
CREATE TABLE Product (
id INTEGER NOT NULL,
name VARCHAR(50) NOT NULL,
price DECIMAL(12,2) NOT NULL,
active BIT DEFAULT 1 NOT NULL,
create_date DATETIME,
PRIMARY KEY (id)
);
The scaffolding operation will produce the source code of View, Model and Controller like these:
The View source code.
<form method="post" asp-action="Create" asp-route-ref="@(System.Net.WebUtility.UrlEncode(ViewData["ref"].ToString()))">
<div class="row">
<div class="mb-3 col-md-6 col-lg-4">
<label class="form-label" for="product_id">Id</label>
<input id="product_id" name="Id" class="form-control form-control-sm" asp-for="@product.Id" type="number" required />
<span asp-validation-for="Id" class="text-danger"></span>
</div>
<div class="mb-3 col-md-6 col-lg-4">
<label class="form-label" for="product_name">Name</label>
<input id="product_name" name="Name" class="form-control form-control-sm" asp-for="@product.Name" required maxlength="50" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="mb-3 col-md-6 col-lg-4">
<label class="form-label" for="product_price">Price</label>
<input id="product_price" name="Price" class="form-control form-control-sm" asp-for="@product.Price" type="number" step="0.1" required />
<span asp-validation-for="Price" class="text-danger"></span>
</div>
<div class="form-check col-md-6 col-lg-4">
<input id="product_active" name="Active" class="form-check-input" type="checkbox" value="true" checked=@(product==null ? false : product.Active) />
<label class="form-check-label" for="product_active">Active</label>
<span asp-validation-for="Active" class="text-danger"></span>
</div>
<div class="col-12">
<a class="btn btn-sm btn-secondary" href="@ViewData["ref"]">Cancel</a>
<button class="btn btn-sm btn-primary">Submit</button>
</div>
</div>
</form>
The Model source code.
public partial class Product
{
[Key]
[Required]
public int Id { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; }
[Required]
public decimal Price { get; set; }
[Required]
public bool Active { get; set; }
public DateTime? CreateDate { get; set; }
}
The Controller source code.
[HttpPost("Create")]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id, Name, Price, Active")] ViewModel.Create.Product model)
{
if (ModelState.IsValid)
{
var product = new Product();
product.Id = model.Id;
product.Name = model.Name;
product.Price = model.Price;
product.Active = model.Active;
product.CreateDate = DateTime.Now;
_context.Add(product);
await _context.SaveChangesAsync();
return Redirect(WebUtility.UrlDecode(Request.Query["ref"].ToString()));
}
ViewData["ref"] = Util.getRef(Request, "/Product");
return View(model);
}
Not only for CRUD operations, StackPuz also generates the source code for the User Authentication and User Authorization modules. so it can reduce the repetitive tasks when creating a new Web Application project.
StackPuz supports many Web Application Frameworks like React, Vue, Angular, Express, Laravel, .NET, Spring and also supports the most popular relational databases including MySQL, SQL Server, PostgreSQL and Oracle.
See also
editReferences
edit- ^ "Definitions of Web-related terms MVC". 20 December 2023.
- ^ "ASP.NET Scaffolding Overview". 4 March 2022.