var personId = new Guid("A4E49137-A4A4-4C85-8CA0-042B98819B9A"); var personService = new PersonService(); var person = personService.Get(personId);
var personService = new PersonService(); var people = personService .Queryable() .Where(p => p.FirstName == "John" && p.LastName == "Doe") .ToList();Package Library: Rock.Model The Rock.Model library is a collection of C# classes that provide an object-oriented interface for working with data in the Rock CMS. This library includes classes like Person, Address, PhoneNumber, and more, which can all be accessed and manipulated using the various services provided by the Rock.Model namespace.