ISqlBuilderBase.Name Property
.NET Standard 2.x |  Current Version (1.0.1) 
Gets the name of the current object.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
   string Name { get; }
Returns
System.String
Returns the name of the current sqlbuilder.
Examples
The following code example demonstrates how to use the Name property.
using SnapObjects.Data;
using System;
namespace Appeon.ApiDoc.ISqlBuilderBaseExamples
{
    public class NameExample
    {
        private SchoolContext _context;
        public NameExample(SchoolContext dataContext)
        {
            // Sets Data Context.
            _context = dataContext;
        }
        public void Example()
        {
            // Creates a SqlQueryBuilder object with the specified name.
            var sqlBuilder = new SqlQueryBuilder("DeptQuery");
            sqlBuilder.Select("name")
                    .From("Department")
                    .WhereValue("DepartmentId", 1);
            // Gets the name. 
            Console.WriteLine("The name of the SqlQueryBuilder Object: \n{0}",
                sqlBuilder.Name);
            /*This code produces the following output:
            
            The name of the SqlQueryBuilder Object:
            DeptQuery
            */
        }
    }
}
Applies to
.NET Standard
2.x