Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="projectFeature"></param>
        public virtual void AddFeature(ProjectFeature <TProjectSettings> projectFeature)
        {
            projectFeature.Project = this;

            Features.Add(projectFeature);
        }
Пример #2
0
 /// <summary>
 /// Indicates if database object is a view
 /// </summary>
 /// <typeparam name="TProjectSettings">Project settings</typeparam>
 /// <param name="projectFeature">Project feature</param>
 /// <param name="dbObject">Database object</param>
 /// <returns>True if database object is a view, otherwise false</returns>
 public static bool IsView <TProjectSettings>(this ProjectFeature <TProjectSettings> projectFeature, IDbObject dbObject) where TProjectSettings : class, IProjectSettings, new()
 => projectFeature.Project.Database.FindView(dbObject.FullName) == null ? false : true;