DisplayMonkey.VideoAlternative._initFromRow(System.Data.SqlClient.SqlDataReader)

Here are the examples of the csharp api class DisplayMonkey.VideoAlternative._initFromRow(System.Data.SqlClient.SqlDataReader) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: DisplayMonkey
Source File: Video.cs
public static List<VideoAlternative> List(int frameId)
        {
            List<VideoAlternative> list = new List<VideoAlternative>();

            using (SqlCommand cmd = new SqlCommand()
            {
                CommandType = CommandType.Text,
                CommandText =
                    "SELECT a.FrameId, c.ContentId, Name, convert(varbinary(256),Data) Chunk, c.Version FROM VideoAlternative a " +
                    "INNER JOIN Content c ON c.ContentId=a.ContentId WHERE a.FrameId=@frameId",
            })
            {
                cmd.Parameters.AddWithValue("@frameId", frameId);
                cmd.ExecuteReaderExt((dr) =>
                {
                    VideoAlternative va = new VideoAlternative();
                    va._initFromRow(dr);
                    list.Add(va);
                    return true;
                });
            }

            return list;
        }