Bitboxx.DNNModules.BBImageStory.Components.DbController.GetStoryLangs C# (CSharp) Method

GetStoryLangs() public method

public GetStoryLangs ( int storyId ) : IEnumerable
storyId int
return IEnumerable
        public IEnumerable<StoryLangInfo> GetStoryLangs(int storyId)
        {
            using (IDataContext ctx = DataContext.Instance())
            {
                string sqlCmd = "SELECT * FROM {databaseOwner}[{objectQualifier}" + Prefix + "StoryLang]" +
                                " WHERE StoryId = @0";
                return ctx.ExecuteQuery<StoryLangInfo>(CommandType.Text, sqlCmd, storyId);
            }
        }