The PersonHub Add() method.
public bool Add(Person newPerson)
bool result = false;
using (var context = new PersonContext())
var person = context.People.Create();
person.FirstName = newPerson.FirstName;
person.LastName = newPerson.LastName;
person.Email = newPerson.Email;
result = true;
Clients.Caller.raiseError("Unable to create a new Person.");
About the Author
Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].
In-editor chat and a Chat view are available in a waitlisted technical preview.
Since recently introducing the open source Semantic Kernel to help developers use AI large language models (LLMs) in their apps, Microsoft has been busy improving it, publishing new guidance on how to use it and touting its capabilities.
The Modern Data Warehouse (MDW) pattern makes it easier than ever to deal with the increasing volume of enterprise data by enabling massive, global-scale writes operations while making the information instantly available for reporting and insights.
Responding to user requests for a more seamless startup experience, Uno Platform 4.8 introduces a new App Template wizard to do just that.
The new ledger feature in SQL Server 2022 provides blockchain-based security to ensure data isn't tampered with.
> More Webcasts